Shell/Bash: edit last commit message Example
Shell/Bash Example: This is the "edit last commit message" Example. compiled from many sources on the internet by SimpleTutorials.org
amend last commit message
$ git commit --amend -m "New and correct message"
edit last commit message
git commit --amend -m "New commit message."
git amend last commit message
$ git commit --amend -m "New and correct message"
change commit message
git commit --amend // press enter, editor would open
how to edit old commit message in git
# Displays a list of the last 3 commits on the current branch $ git rebase -i HEAD~3
how to change a commit message
git commit --amend git push --force-with-lease
* Summary: This "edit last commit message" Shell/Bash Example is compiled from the internet. If you have any questions, please leave a comment. Thank you!