How to specify a git commit message template for a repository in a file at a relative path to the repository?

This blog tipped me off that if the path to the template file is not absolute, then the path is considered to be relative to the repository root.

git config commit.template /absolute/path/to/file

or

git config commit.template relative-path-from-repository-root

Leave a Comment