1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-23 22:30:07 +00:00
ohmyzsh/plugins/git-commit-template/README.md
2022-01-23 10:13:57 +03:30

1.7 KiB

Version License Apache-2.0

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.

gct

result

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

git log

signature

You can use -s or sign to add a signature to the gct.

➜  gct -s
➜  gct sign

Tanks For Supporting 🐯