1.0.0 • Published 2 years ago
can-i-commit v1.0.0
can-i-commit
This little module is useful for preventing annoying mistakes, like writing out your entire conventional commit to find out you forgot to stage changes, or committing on your master branch and getting an error on push.
- Checks if files are staged, if none, exits with error.
- Checks if user is trying to commit on a prohibited branch, If so, exits with error.
Install
npm i @jonbilous/can-i-commit -g
Configuration
can-i-commit init
Usage
can-i-commit check && cz
1.0.0
2 years ago