commit template

A text file Git pre-fills into the editor when you commit, set with the commit.template setting.

In more detail

It usually holds reminder lines starting with #, which Git strips from the final message because they are comments. It nudges everyone towards the same message shape without enforcing anything.

Example

git config commit.template .gitmessage

Related terms

Taught in

References