Skip to content

Instantly share code, notes, and snippets.

@drewr
Created June 8, 2009 16:16
Show Gist options
  • Save drewr/125909 to your computer and use it in GitHub Desktop.
Save drewr/125909 to your computer and use it in GitHub Desktop.
git post-receive hook
#!/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