Skip to content

Instantly share code, notes, and snippets.

@vcastellm
Created September 8, 2011 10:45
Show Gist options
  • Save vcastellm/1203123 to your computer and use it in GitHub Desktop.
Save vcastellm/1203123 to your computer and use it in GitHub Desktop.
Simple production git deploy
#!/bin/bash
cd ..
GIT_DIR='.git'
umask 002 && git reset --hard
@vcastellm
Copy link
Author

Setup

 pushd .git/hooks && curl -O https://gist.githubusercontent.com/victorcoder/1203123/raw/56f614c9518084986657afb2c0dba6c4a3a4aa5d/post-receive && chmod +x post-receive && git config receive.denyCurrentBranch ignore && popd

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment