2022-01-07 13:13:58 +03:30
|
|
|
# git-commit-template plugin
|
|
|
|
|
2022-01-07 14:12:50 +03:30
|
|
|
To better write git commit messages, we can use template to specify the
|
|
|
|
desired description and type of message.
|
2022-01-07 13:13:58 +03:30
|
|
|
|
2022-01-07 14:12:50 +03:30
|
|
|
To use it, add `git-commit-template` to the plugins array in your zshrc
|
|
|
|
file:
|
2022-01-07 13:13:58 +03:30
|
|
|
|
|
|
|
```zsh
|
|
|
|
plugins=(... git-commit-template)
|
|
|
|
```
|
|
|
|
|
|
|
|
## Learn This Articles
|
|
|
|
|
|
|
|
- #### [How to Write Better Git Commit Messages](https://www.freecodecamp.org/news/how-to-write-better-git-commit-messages/)
|
|
|
|
|
|
|
|
- #### [Epower Git Template](https://github.com/epowerng/git-template)
|
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
2022-01-07 14:12:50 +03:30
|
|
|
All you have to do is call the `gct` command and fill in the items that
|
|
|
|
are not optional at each step to prepare the message format.
|
2022-01-07 13:13:58 +03:30
|
|
|
|
|
|
|

|
|
|
|
|
|
|
|

|
|
|
|
|
|
|
|
With the `git log` command, we can see the message that we committed.
|
|
|
|
|
|
|
|

|
|
|
|
|
|
|
|
### Tanks For Supporting [📌 Source](https://github.com/ghasemdev/git-commit-template)
|