Skip to content

Instantly share code, notes, and snippets.

@1stevengrant
Created August 7, 2012 11:20
Show Gist options
  • Save 1stevengrant/3284606 to your computer and use it in GitHub Desktop.
Save 1stevengrant/3284606 to your computer and use it in GitHub Desktop.
post-receive hook for git
#!/bin/sh
GIT_WORK_TREE=/home/user/public_html git checkout -f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment