Interview Prep/Git & GitHub/Commits, branches and tags

What are Git trailers and how are they used?

IntermediateConceptCommits, branches and tags
Answer

Trailers are Key: value lines at the end of a commit message, such as Signed-off-by, Co-authored-by, Reviewed-by and Fixes. git interpret-trailers can add and parse them, and git log --format='%(trailers:key=Fixes)' extracts them. Signed-off-by implements the Developer Certificate of Origin (commit -s).

git commit -s -m "feat: add retries"
All Git & GitHub questions Roadmap: Git & GitHub

More on Commits, branches and tags