0.2.0 • Published 4 years ago
git-shell-scripts v0.2.0
Git Scripts
Wrapper scripts
npm install git-shell-scripts
Docs
https://www.atlassian.com/git/tutorials/git-hooks
action | hook | source | args | exit 1 |
---|---|---|---|---|
commit/0 | pre-commit | local | - | abort |
commit/1 | prepare-commit-msg | local | 1. message file path2. type- message: -m | -F- template: -t- merge- squash3. sha? for -c -C --amend | abort |
commit/2 | commit-msg | local | message file path | abort |
commit/3 | post-commit | local | - | |
push/0 | pre-receive | remote | ||
push/1 | update | remote | ||
push/2 | post-receive | remote |
pre-commit
https://codeinthehole.com/tips/tips-for-using-a-git-pre-commit-hook/