Checks that we are on a correct git branch before proceeding.
npm install grunt-checkbranch --save-dev
And in your Gruntfile:
Include the task as one of your multitasks, optionally passing the desired branch (default:
master) after a colon, e.g.:
Pass a "negated" branch where further tasks are not allowed by prepending an exclamation mark:
To skip checks:
To force checks (disables skipping), add the third param with