Created
January 7, 2011 23:07
-
-
Save tkaemming/770271 to your computer and use it in GitHub Desktop.
a git post-receive hook to autoupdate to the new HEAD. good for push deploys for a static or PHP site.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
cd .. | |
env -i git reset --hard |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment