subject line
The first line of a commit message, a short summary that Git shows in one-line views such as git log --oneline.
In more detail
Aim for under about fifty characters, written as a command and capitalised, with no full stop, because tools truncate or quote it: git shortlog wraps it and merge messages quote it. Everything after the following blank line is the body.
Related 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.
- imperative mood — The grammatical form of a command, such as "Add the request timeout" rather than "Added" or "Adds".
- git shortlog — A command that summarises history by author, listing each person's commit subjects under their name.
Taught in
- Committing, And What A Good Message Says — Advanced Git Internals & Distributed Workflows
- Conventional Commits — Advanced Git Internals & Distributed Workflows
- Reading History: log, show And diff — Advanced Git Internals & Distributed Workflows
- A Branch Is A Moving Pointer — Advanced Git Internals & Distributed Workflows
- HEAD, And Why Detached HEAD Is Not An Error — Advanced Git Internals & Distributed Workflows