Source: Git Hooks - Git
Git Hooks Integration for Chatie Projects
This module is a wrapper of the NPM module git-scripts, it provide following additional features:
pre-pushhook had been set to runnpm run lintand thennpm verion patchbeforegit pushfor better code quality and version management.
Learn more about the original git-scripts from its GitHub homepage: git-scripts
You can skip git hook for pre-push if you want.
To temporary disable the pre-push git hook, you can set NO_HOOK=1 before do git push:
# for Linux & Mac
NO_HOOK=1 git push
# for Windows
set NO_HOOK=1 git pushTo permanent disable the pre-push git hook, you can delete the related settings in package.json:
- "git": {
- "scripts": {
- "pre-push": "npx git-scripts-pre-push"
- }
- }- Install hook to
package.jsonautomatically
- Wrap
git-scripts
- Code & Docs © 2019 - now Huan LI zixia@zixia.net
- Code released under the Apache-2.0 License
- Docs released under Creative Commons

