beautiful-commits
Version:
Make commits beautiful.
57 lines (43 loc) โข 1.54 kB
Markdown
# ๐ Beautiful Commits
**Beautiful Commits** is a CLI tool that helps make your commits beautiful and expressive by adding emojis to the beginning of commit messages.

<hr>
## ๐ Example
1. Make a commit, and Beautiful Commits will automatically prepend the selected emoji to your commit message.
```bash
git commit -m "Your commit message"
```
After running the command, your commit message will look like this:
```
๐ Your commit message
```
## ๐ฅ Usage
Use the `init` command to initialize configuration and dependencies for a new project.
<hr>
```
npx beautiful-commits init
```
If you don't have the husky package installed yet, it will be downloaded as a dev dependency
<hr>
You will be asked to choose which emoji you want to use
```
? ๐ฏ Select emoji to add to the start of the commit ยป ๐ก Enter to submit.
> ๐ฅ
> โ๏ธ
> ๐
> ๐
> ๐๏ธ
> ๐น
```
A configuration file `beautiful-commits.config.json` will be created with the selected emoji
## ๐ง Configuration
Beautiful Commits allows you to configure various aspects of commit handling.\
The beautiful-commits.config.json file lets you specify the emoji to prepend to commit messages.
Example configuration file:
```json
{
"selectedEmoji": "๐ฅ"
}
```
You can edit emoji in configuration file
> If the configuration file is missing or the emoji is not specified, the default value โ๏ธ will be used.