2021年3月11日星期四

Apply patch as commit without changing the commit's message?

In order to apply a patch as a commit https://stackoverflow.com/a/2250170/1778275 suggets using:

git am --signoff < a_file.patch   

However, it changes the commit's message in the git log:

yyy    Signed-off-by: Name Surname <local-part@domain_name>  

while the original commit's message is:

[xxx] yyy  

Question: how to keep the original commit's message?

UPD. Yes, I am aware of git commit --amend. However, is there are any way to avoid using any extra commands?

https://stackoverflow.com/questions/66588339/apply-patch-as-commit-without-changing-the-commits-message March 12, 2021 at 02:24AM

没有评论:

发表评论