Git edit commit message

Published: 27 August 2022
on channel: Gitme5
40
0

How to change the commit messages.


Change the last commit message:

git commit --amend -m 'new message'


Change the second last commit messages with interactive rebase:

git rebase -i HEAD~2
change pick to reword for the messages to change


Change the first commit message with interactive rebase:

git rebase -i --root
change pick to reword for the messages to change


On this page of the site you can watch the video online Git edit commit message with a duration of hours minute second in good quality, which was uploaded by the user Gitme5 27 August 2022, share the link with friends and acquaintances, this video has already been watched 40 times on youtube and it was liked by 0 viewers. Enjoy your viewing!