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.
In the first step, in the home directory (zshrc directory) clone git-commit-template.
➜ ~ git clone https://github.com/ghasemdev/git-commit-template.git
Then we have to run this command to install.
➜ ~ chmod +x git-commit-template/installer.sh
➜ ~ git-commit-template/installer.sh
In the last command we refresh oh-my-zsh source.
➜ ~ source ~/.zshrc
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.
With the git log
command, we can see the message that we committed.
With gtt
command is easy to tag your commits.
You can use -s
or sign
to add a signature to the gct or gtt.
➜ gct -s
➜ gct sign
➜ gtt -s
➜ gtt sign