Skip to content

To better write git commit messages, we can use a ready-made template to specify the desired description and type of message. This file is prepared for use in zsh.

License

Notifications You must be signed in to change notification settings

ghasemdev/git-commit-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

git commit template (gct)

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

git tag template (gtt)

With gtt command is easy to tag your commits.

git log

git log

signature

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

➜  gct -s
➜  gct sign

➜  gtt -s
➜  gtt sign

Tanks For Supporting 🐯

About

To better write git commit messages, we can use a ready-made template to specify the desired description and type of message. This file is prepared for use in zsh.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages