Skip to content

Latest commit

 

History

History
20 lines (13 loc) · 444 Bytes

rewrite_last_commit_message.md

File metadata and controls

20 lines (13 loc) · 444 Bytes

Rewrite the last commit message

I often fat-finger or misspell stuff in commit messages, luckily Git lets you correct these things without too much hassle.

If you have just made the commit locally and have not yet pushed

$ git commit --amend

If you have pushed to your remote

$ git commit --amend
git push --force

References