1GIT-STAMP(1)                      Git Extras                      GIT-STAMP(1)
2
3
4

NAME

6       git-stamp - Stamp the last commit message
7

SYNOPSIS

9       git stamp [<options>] <id> [<messages>]
10

DESCRIPTION

12       Lets you amend the last commit with a stamp message.
13
14       The  command  appends  a message with its identifier to the last commit
15       message.
16       By default all stamps are appended as a new  paragraph  to  the  commit
17       message.
18       You can change this behavior by using the --replace flag.
19       With this flag, all the related stamps with the same identifier will be
20       removed first before the new one gets appended.
21
22       WARNING! If a commit message without stamp have a  line  starting  with
23       the same identifier, it will be interpreted as a stamp
24

OPTIONS

26       -r, --replace
27
28
29
30           Replace all previous stamps in the last commit message that have the same identifier
31           The identifier is case insensitive for this replacement
32
33
34

EXAMPLES

36       Commit message is
37
38
39
40           | Fix timezone bug
41
42
43
44       Reference the issues numbers from your bug tracker
45
46
47
48           $ git stamp Issue FOO-123
49           $ git stamp Issue FOO-456 \#close
50
51           | Fix timezone bug
52           |
53           | Issue FOO-123
54           |
55           | Issue FOO-456 #close
56
57
58
59       Link to its review page
60
61
62
63           $ git stamp Review https://reviews.foo.org/r/4567/
64
65           | Fix timezone bug
66           |
67           | Issue FOO-123
68           |
69           | Issue FOO-456 #close
70           |
71           | Review https://reviews.foo.org/r/4567/
72
73
74
75       Replace previous issues with a new one
76       (Note that the identifier is case insensitive)
77
78
79
80           $ git stamp --replace issue BAR-123
81
82           | Fix timezone bug
83           |
84           | Review https://reviews.foo.org/r/4567/
85           |
86           | issue BAR-123
87
88
89

AUTHOR

91       Written by Damien Tardy-Panis <damien@tardypad.me>
92

REPORTING BUGS

94       <http://github.com/tj/git-extras/issues>
95

SEE ALSO

97       <https://github.com/tj/git-extras>
98
99
100
101                                  April 2018                      GIT-STAMP(1)
Impressum