edit last commit message
git commit --amend -m "New commit message."
edit last commit message
git commit --amend -m "New commit message."
how to change a commit message after push
git commit --amend -m "New commit message"
Then
git push --force
and you're done
rename a commit pushed
git commit --amend -m "Your new message here"
git amend commit message after push
$ git commit --amend -m "New and correct message"
change commit message after push
git push --force <repository> <branch>
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us