Shell/Bash: amend last commit message Example

By

Shell/Bash Example: This is the "amend 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 message from last pushed commit

git commit --amend

amend commit

git commit --amend -m "an updated commit message"

git amend commit message

git commit --amend -m "New commit message for most recent commit"


* Summary: This "amend last commit message" Shell/Bash Example is compiled from the internet. If you have any questions, please leave a comment. Thank you!

Others