git commit with beautiful massage
execute bcommit -m "xxx"
then it will capitalize the first letter in the git commit massage and add an emoji that match to the message type.
bcommit -m "feat: support new feature"
The above command is equivalent to executing the following command.
git commit -m "✨: Support new feature"
npm install --global git-beauty-commit-cli
$ bcommit --help
Usage
$ bcommit [options]
Options
-h --help Print this help
-v --version Print git-beauty-commit-cli version number
-m --message execute git commit with message
Examples
$ bcommit -m "fix: fixed the issue that this library cannot be used on Mac system"
- $
git add .
- $
bcommit -m "YOUR COMMIT MESSAGE"
to make a commit - $
git push
emoji | type | description |
---|---|---|
✨ | feat | A new feature |
🐛 | fix | A bug fix |
📖 | docs | Documentation only changes |
💄 | style | Changes that do not affect the meaning of the code |
🛠 | refactor | A code change that neither fixes a bug nor adds a feature |
⚡️ | perf | A code change that improves performance |
✅ | test | Adding missing tests or correcting existing tests |
📦 | build | Changes that affect the build system or external dependencies (example scopes: gulp, broccoli, npm) |
⚙️ | ci | Changes to our CI configuration files and scripts (example scopes: Travis, Circle, BrowserStack, SauceLabs) |
🚀 | chore | Other changes that don't modify src or test files |
🗑 | revert | Reverts a previous commit |
🤞 | try | Add untested to production |
🎉 | init | Project init |
- git-beauty-commit - API for this module
This project is created using generator-stupid-cli.