These git hooks runs bundle
or npm install
automatically whenever you:
git checkout
a new branch with a different Gemfile or package.json.git pull
a change to Gemfile or package.json.
cd awesome_git_repo
curl -fL https://gist.githubusercontent.com/stefansundin/82051ad2c8565999b914/raw/install-hooks.sh | sh
cd awesome_git_repo
rm .git/hooks/post-checkout .git/hooks/post-merge