gitp ARGUMENTS_FOR_GIT_PULL
= npm run prepull && git pull ARGUMENTS_FOR_GIT_PULL && npm run postpull
gitp ARGUMENTS_FOR_GIT_PULL
will execute your defined npm scripts prepull
before executing git pull ARGUMENTS_FOR_GIT_PULL
, then npm run postpull
. If one of the steps fails, it will stop.
To install:
npm install -g git-pull-hook
To Use:
# Go to your git repository (via cd)
gitp ARGUMENTS_FOR_GIT_PULL
# Wait for prompts
# When it has finished, it will prompt you "done!"