change git commit message
git commit --amend -m "New commit message"
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."
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
git checkout branch_name
git commit --amend -m "Modified message"
# if previous commit is not pushed yet
git push
# or if previous comment was pushed in a previous commit:
git push --force-with-lease branch_name
git amend commit message
git commit --amend -m "New commit message for most recent commit"
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