-
Notifications
You must be signed in to change notification settings - Fork 5
Setup a commit template
Antonio Ossa edited this page Feb 6, 2018
·
1 revision
-
Place you template in a safe place and remember the path to your file. In this example, we'll use
~/.gitmessage
. -
Specify the path to your template in your config file as
commit.template
using this command:$ git config commit.template PATH
You can use the commit template in an relative path to your repository too. See this SO question.
-
To use your template, just use the
git commit
command, and the template will be open in your default editor. Once you save and close the opened file, the commit is completed.
If you have any questions when using git-gud
, feel free to open a new issue ❓