Shell/Bash: change git commit message Example

By

Shell/Bash Example: This is the "change git commit message" Example. compiled from many sources on the internet by SimpleTutorials.org

change git commit message

git commit --amend -m "New commit message"

amend last commit message

$ git commit --amend -m "New and correct message"

edit last commit message

git commit --amend -m "New commit message."

git commit amend without changing message

git commit --amend --no-edit

git amend last commit message

$ git commit --amend -m "New and correct message"

change commit message

git commit --amend
// press enter, editor would open


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

Others