4

Im am using VS Code to write commit messages. When I type git commit -a VS Code starts up with this text:

# Please enter the commit message for your changes. Lines starting
# with '#' will be ignored, and an empty message aborts the commit.
#
# On branch assi
# Changes to be committed:
#   modified:   Default_Navigation.cs
#

is it possible to change this template?

Hade0011
  • 81
  • 3
  • 10
  • 1
    Does this answer your question? [How to specify a git commit message template for a repository in a file at a relative path to the repository?](https://stackoverflow.com/questions/21998728/how-to-specify-a-git-commit-message-template-for-a-repository-in-a-file-at-a-rel) – phd Apr 22 '20 at 08:45
  • https://stackoverflow.com/search?q=%5Bgit%5D+commit+template – phd Apr 22 '20 at 08:46

1 Answers1

6

git config commit.template /absolute/path/to/template_file seems to be the way to go. Check out How to specify a git commit message template for a repository in a file at a relative path to the repository?

Joe Krump
  • 111
  • 1
  • 7