1.1.2 • Published 7 years ago

git-pull-hook v1.1.2

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

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