Skip to content

Instantly share code, notes, and snippets.

@danwaz
Created July 25, 2013 23:04
Show Gist options
  • Save danwaz/6084576 to your computer and use it in GitHub Desktop.
Save danwaz/6084576 to your computer and use it in GitHub Desktop.
Post Receive Hook Example .git/hooks/post-receive
#!/bin/bash
GIT_WORK_TREE=/path/to/project/web_root git checkout -f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment