yxliang01 / git-pull-hook

A npm(nodejs) module allows you to add prepull and postpull hook
MIT License
1 stars 0 forks source link

git-pull-hook

Build Status [Dependency Status]() Code Climate NSP Status npm version

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!"