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 .gitmessageRelated terms
- commit message — The text a person writes into a commit to say what it does and why: a one-line subject, a blank line, then an optional body.
- git config — The command that reads and writes Git settings, which live in plain text config files.
Taught in
- Committing, And What A Good Message Says — Advanced Git Internals & Distributed Workflows