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 β€” so Issue and issue are 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