Today I Learned: collection of notes, tips and tricks and stuff I learn from day to day working with computers and technology as a developer

View project on GitHub

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 hazzle.

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