Skip to content

Latest commit

 

History

History
18 lines (13 loc) · 378 Bytes

File metadata and controls

18 lines (13 loc) · 378 Bytes

Modify Commit Message

git commit --amend
git commit --amend -m "New commit message"

Change the message of a commit that has already been pushed to a remote branch.

git push <remote> <branch> --force
# Or
git push <remote> <branch> -f

References

  1. How to modify existing, unpushed commit messages?