Skip to content

Instantly share code, notes, and snippets.

@codekipple
Created February 19, 2012 03:25
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 codekipple/1861809 to your computer and use it in GitHub Desktop.
Save codekipple/1861809 to your computer and use it in GitHub Desktop.
post reveive hook for git
#!/bin/sh
# Update the working tree after changes have been pushed here
cd ..
env -i git reset --hard
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment