Created
January 12, 2010 08:22
-
-
Save skremiec/275006 to your computer and use it in GitHub Desktop.
[Git] Hook updating working tree after 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 | |
# .git/hooks/post-receive - refreshing working-tree after pushing to this repository | |
cd .. | |
env -i git reset --hard |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment