GIT-STAMP(1)
π GIT-STAMP(1) β the git-extras girlies know π
okay so bestie, welcome to git-stamp, one of the lil gems in Git Extras. strap in, it's giving β¨commit message glow-upβ¨ and honestly? obsessed.
β¨ NAME β¨
git-stamp β Stamp the last commit message π
π¦ SYNOPSIS π¦
git stamp [<options>] <id> [<messages>]
π DESCRIPTION π
so basically this command lets you amend the last commit with a stamp message. iconic behaviour, no cap.
It appends a message with its identifier to the last commit message. simple as that, fr fr.
By default all stamps are appended as a new paragraph to the commit message. like, stacking them, one after another, very demure, very mindful. π«Ά
You can change this behavior by using the --replace flag. With this flag, all the related stamps with the same identifier will be removed first before the new one gets appended. out with the old, in with the new, periodt. π
β οΈ WARNING! If a commit message without stamp have a line starting with the same identifier, it will be interpreted as a stamp. π like, not me accidentally stamping something that wasn't a stamp... be careful bestie, it's a vibe check you might fail.
πΈ OPTIONS πΈ
-r,--replaceβ Replace all previous stamps in the last commit message that have the same identifier. π§Ή The identifier is case insensitive for this replacement β soIssueandissueare literally the same thing, iykyk.
π EXAMPLES π
β¨ Commit message is
| Fix timezone bug
okay so starting point, cute, simple, slay.
β Reference the issues numbers from your bug tracker
$ git stamp Issue FOO-123
$ git stamp Issue FOO-456 \#close
and now the commit message is giving:
| Fix timezone bug
|
| Issue FOO-123
|
| Issue FOO-456 #close
two stamps, stacked, paragraphs and all. chef's kiss. π
π Link to its review page
$ git stamp Review https://reviews.foo.org/r/4567/
which gives you:
| Fix timezone bug
|
| Issue FOO-123
|
| Issue FOO-456 #close
|
| Review https://reviews.foo.org/r/4567/
the way it just keeps appending... main character energy fr. π₯
π Replace previous issues with a new one
(Note that the identifier is case insensitive β yes bb, Issue and issue are the same identifier, don't even try it π)
$ git stamp --replace issue BAR-123
and boom:
| Fix timezone bug
|
| Review https://reviews.foo.org/r/4567/
|
| issue BAR-123
see how both of the old Issue stamps got yeeted but the Review one stayed? that's the --replace working its magic, she ate. π
β¨
π«Ά AUTHOR π«Ά
Written by Damien Tardy-Panis <damien@tardypad.me> β thank you king, we love you π
π REPORTING BUGS π
bugs? not on our watch but ok, tell them here:
<https://github.com/tj/git-extras/issues>
π SEE ALSO π
<https://github.com/tj/git-extras> β go explore the whole extras cinematic universe bestie π
k bye, this was GIT-STAMP(1) from the Git Extras collection, May 2026 edition β go stamp something cute, and remember: the vibe changes, the facts never do. ππβ¨
π¦ where this page comes from
- ubuntu stonking: git-extras 7.5.0-1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms