Answers for "change last 2 commit message"

0

git change author of last 2 commits

git rebase -i YOUR_SHA -x "git commit --amend --author 'New Name <[email protected]>' -CHEAD"
Posted by: Guest on November-13-2020
0

git edit merge commit message

For current Git versions (2020+), just do git rebase -i -r <parent>, 
then replace in the editor merge -C with merge -c.
This will open the merge commit's message in the editor during rebasing,
where you can change it
Posted by: Guest on August-05-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language