Created
March 20, 2012 20:29
-
-
Save csrui/2140970 to your computer and use it in GitHub Desktop.
Git - Post receive hook
This file contains hidden or 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 .. | |
GIT_DIR='.git' | |
umask 002 && git reset --hard | |
# Set 'receive.denyCurrentBranch' configuration variable to 'ignore' or 'warn' in the remote repository to allow pushing into | |
# chmod +x .git/hooks/post-receive |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment