ghk-branch-nocommit

1.0.4 • Public • Published

ghk-branch-nocommit

git hook to prevent commits on specified branches

plugin for ghk package

installation

$ npm install --save-dev ghk-branch-nocommit

usage

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

Package Sidebar

Install

npm i ghk-branch-nocommit

Weekly Downloads

1

Version

1.0.4

License

MIT

Last publish

Collaborators

  • arnellebalane