Daily Software Tips & Tricks

Bite-sized knowledge to improve your coding skills daily.

Did You Spell-Check Your Last Commit?

February 2, 2026

We’ve all done it: you hit commit, then immediately realize you made a typo in the message or forgot to stage one small, crucial file. Before you start panicking about rebasing, remember `git commit --amend`. This command lets you rewrite the message of the very last commit, or add staged changes to it, essentially replacing the old commit entirely. It cleans up your history beautifully, but be careful: only use this if the commit hasn't been pushed to a shared remote branch yet!