Skip to content

Instantly share code, notes, and snippets.

@keriati
Created June 5, 2012 15:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save keriati/2875568 to your computer and use it in GitHub Desktop.
Save keriati/2875568 to your computer and use it in GitHub Desktop.
Post receive hook: git "deploy" after push
#!/bin/sh
cd ..
GIT_DIR='.git'
umask 002 && git reset --hard
@keriati
Copy link
Author

keriati commented Jun 5, 2012

Copy to: .git/hooks/
Don't forget: chmod +x post-receive

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