mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-12-03 22:00:48 +01:00
1.7 KiB
1.7 KiB
git-commit-template
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.
Learn This Articles
Installation
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
Usage
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.
signature
You can use -s
or sign
to add a signature to the gct.
➜ gct -s
➜ gct sign