ghk-branch-nocommit
v1.0.4
Published
git hook to prevent commits on specified branches
Maintainers
Readme
ghk-branch-nocommit
git hook to prevent commits on specified branches
plugin for ghk package
installation
$ npm install --save-dev ghk-branch-nocommitusage
inside your project's .ghkrc (or the one in your root directory):
{
"pre-commit": {
"branch-nocommit": {
"branches": ["master"]
}
}
}options
- branches: a list of branch names where committing in them is not allowed
