Created
February 9, 2017 19:45
-
-
Save aowongster/ad594139e0cc682603a7099257b88ddb to your computer and use it in GitHub Desktop.
git post receive hook for updating index on push
This file contains 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/bash | |
unset GIT_DIR | |
echo "checking out force latest" | |
pwd | |
cd .. && git checkout -f |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment