ohmyzsh/plugins/git-commit-template/README.md

61 lines
1.7 KiB
Markdown
Raw Normal View History

2022-01-23 07:43:57 +01:00
[![Version](https://shields.io/badge/VERSION-1.2.0-blue?style=for-the-badge)](https://github.com/ghasemdev/git-commit-template/releases/tag/v1.1.0)
[![License Apache-2.0](https://shields.io/badge/LICENSE-APACHE--2.0-orange?style=for-the-badge)](https://opensource.org/licenses/MIT)
2022-01-07 10:43:58 +01:00
2022-01-23 07:43:57 +01:00
# git-commit-template
2022-01-07 10:43:58 +01:00
2022-01-23 07:43:57 +01:00
To better write git commit messages, we can use template to specify the
desired description and type of message. This file is prepared for use in zsh.
2022-01-07 10:43:58 +01:00
## 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)
2022-01-23 07:43:57 +01:00
- #### [چگونه یک پیغام گیت با معنا بنویسیم؟](https://virgool.io/@mmdsharifi/how-to-semantic-git-commit-messages-gvmmqatf6acg)
## Installation
In the first step, in the home directory (zshrc directory) clone git-commit-template.
```bash
➜ ~ git clone https://github.com/ghasemdev/git-commit-template.git
```
Then we have to run this command to install.
```bash
➜ ~ chmod +x git-commit-template/installer.sh
➜ ~ git-commit-template/installer.sh
```
In the last command we refresh oh-my-zsh source.
```bash
➜ ~ source ~/.zshrc
```
2022-01-07 10:43:58 +01:00
## Usage
2022-01-07 11:42:50 +01:00
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 10:43:58 +01:00
2022-01-23 07:43:57 +01:00
![gct](images/1.png)
2022-01-07 10:43:58 +01:00
2022-01-23 07:43:57 +01:00
![result](images/2.png)
2022-01-07 10:43:58 +01:00
With the `git log` command, we can see the message that we committed.
2022-01-23 07:43:57 +01:00
![git log](images/3.png)
### signature
You can use `-s` or `sign` to add a signature to the gct.
```bash
➜ gct -s
➜ gct sign
```
2022-01-07 10:43:58 +01:00
2022-01-23 07:43:57 +01:00
## Tanks For Supporting 🐯