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."
git amend last commit message
$ git commit --amend -m "New and correct message"
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
change commit message
git commit --amend
// press enter, editor would open
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