Shell/Bash: git amend commit message after push Example

By

Shell/Bash Example: This is the "git amend 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 commit message after push

git push --force  

change commit message after push

git push --force-with-lease  



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

Others