1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76
|
git-stamp(1) -- Stamp the last commit message
=============================================
## SYNOPSIS
`git stamp [<options>] <id> [<messages>]`
## DESCRIPTION
Lets you amend the last commit with a stamp message.
The command appends a message with its identifier to the last commit message.
By default all stamps are appended as a new paragraph to the commit message.
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.
`WARNING!` If a commit message without stamp have a line starting with the same identifier, it will be interpreted as a stamp
## 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
## EXAMPLES
Commit message is
| Fix timezone bug
Reference the issues numbers from your bug tracker
$ git stamp Issue FOO-123
$ git stamp Issue FOO-456 \#close
| Fix timezone bug
|
| Issue FOO-123
|
| Issue FOO-456 #close
Link to its review page
$ git stamp Review https://reviews.foo.org/r/4567/
| Fix timezone bug
|
| Issue FOO-123
|
| Issue FOO-456 #close
|
| Review https://reviews.foo.org/r/4567/
Replace previous issues with a new one
(Note that the identifier is case insensitive)
$ git stamp --replace issue BAR-123
| Fix timezone bug
|
| Review https://reviews.foo.org/r/4567/
|
| issue BAR-123
## AUTHOR
Written by Damien Tardy-Panis <<damien@tardypad.me>>
## REPORTING BUGS
<<https://github.com/tj/git-extras/issues>>
## SEE ALSO
<<https://github.com/tj/git-extras>>
|