Git Commit Trailer Parser
CodeParse a commit message's trailer block (Co-authored-by, Signed-off-by, Fixes, Reviewed-by, etc.) per git's RFC 822-style trailer convention, returning each trailer's key and value plus the message body with the trailer block removed
Paste a full commit message and get back its trailer block parsed into structured key/value pairs, like Signed-off-by, Co-authored-by, Fixes, or Reviewed-by, separated cleanly from the rest of the message body. Git trailers follow an RFC 822-style convention: the last paragraph of a commit message counts as the trailer block when every line in it looks like a Key: value pair, or an indented continuation of the previous line's value. This tool requires every line in that last paragraph to match, so a paragraph that mixes trailers with ordinary prose is reported as having no trailers rather than guessing which lines are which, unlike git's own looser 25%-of-lines heuristic for a mixed paragraph. It's useful for building commit-message linters, extracting co-author credit for changelog generation, or just checking that a commit template's trailers came through correctly before a squash-merge.
How to use Git Commit Trailer Parser
- 1.Paste a full commit message, including any trailing Key: value lines.
- 2.Review the parsed trailers, each with its key and value split out, and the body text with the trailer block removed.
- 3.Use the REST API or an SDK to lint or extract trailers across a batch of commit messages, for example when generating a changelog's co-author credits.
Frequently asked questions
Use via API, SDK, or MCP
cURL# Free: 1,000 req/day · Pro: 10,000 req/day
curl -X POST https://api.utilix.tech/v1/tools/git-commit-trailer-parser \
-H "Authorization: Bearer utx_live_..." \
-H "Content-Type: application/json" \
-d '{"message":"Fix bug\n\nLonger explanation of the fix.\n\nFixes: #123\nSigned-off-by: A <a@example.com>"}'Get an API key from your dashboard · Full API docs →