Last active
December 15, 2015 10:35
-
-
Save tvrcgo/59d2ed2b40f8a9cab116 to your computer and use it in GitHub Desktop.
git hook: refresh work trees on receiving git 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
#source ~/.bash_profile | |
export PATH=/usr/sbin:/usr/local/bin:$(npm bin):$PATH | |
# refresh dir. | |
git --git-dir=. --work-tree=$PWD/.. reset --hard | |
cd .. | |
# build. | |
echo '--- build start ---' | |
npm run release |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment