My git repository has two branches, \'master\' and \'dev\'.
Code committed to \'dev\' goes through an automated build process before it is tested. Code that passes this
npm install -D husky npm i git-branch-is
configure it through package.json
"husky": { "hooks": { "pre-commit": "git-branch-is -r \"^((?!master).)*$\"" } }