Skip to content

Instantly share code, notes, and snippets.

@kamikat
Created October 26, 2014 14:09
Show Gist options
  • Save kamikat/cada96a95c1b3ad273af to your computer and use it in GitHub Desktop.
Save kamikat/cada96a95c1b3ad273af to your computer and use it in GitHub Desktop.
GIT Hook Script - auto checkout latest version from code and run Grunt build task once pushed.
cd ..
env -i git checkout HEAD -- package.json
env -i git checkout HEAD -- bower.json
env npm install
env bower install
env -i git reset --hard
env grunt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment