git-pull-hook
v1.1.2
Published
Allows you to add pull hooks (prepull and postpull) for gits
Downloads
6
Readme
git-pull-hook
For npm(node) modules directories
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!"