Shell/Bash: how to change a commit message after push Example

By

Shell/Bash Example: This is the "how to change a commit message after push" Example. compiled from many sources on the internet by SimpleTutorials.org

how to change a commit message after push

git commit --amend -m "New commit message"
Then
git push --force
and you're done

git amend commit message after push

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

change message from last pushed commit

git commit --amend

change commit message after push

git push --force  



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

Others