Skip to content

Instantly share code, notes, and snippets.

@tkaemming
Created January 7, 2011 23:07
Show Gist options
  • Save tkaemming/770271 to your computer and use it in GitHub Desktop.
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.
#!/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