Daily Software Tips & Tricks
Bite-sized knowledge to improve your coding skills daily.
Keep Your Git History Clean with Fixup
March 18, 2026
We’ve all been there: you just pushed a PR, then realized you left a console log or a typo. Instead of creating a messy 'oops' commit, use git commit --fixup followed by the hash of the commit you want to fix. When you're ready to merge, run git rebase -i --autosquash, and Git will automatically melt those tiny fixes into the original commits. Your teammates will love you for the pristine, readable history.