Manage your git hooks with CommandBox
Install this package and set up your project to use it:
box install commandbox-githooks
cd my-git-project
box githooks installAdd your scripts to a githooks key in the box.json:
{
"githooks": {
"preCommit": "testbox run",
"postCheckout": [
"install",
"!npm install",
"!gulp"
]
}
}Note: In order to work correctly, the path to box or box.exe must be in your system's PATH variable.