Cherry-pick with customized old SHA-1 line automatically

95 Views Asked by At

If I cherry-pick original commit deadbeef with -x, Git would append a line like

(cherry picked from commit deadbeef)

Is there any way to customize this message? Like I prefer

Backported from: deadbeef

Maybe some custom Git alias?

1

There are 1 best solutions below

3
On

you can always use

git commit --amend

to change your commit message.