Daily Software Tips & Tricks

Bite-sized knowledge to improve your coding skills daily.

Clean History with Git Fixup

April 29, 2026

If you've ever made a small typo right after a commit, don't create a new 'oops typo' commit that litters your log. Instead, use git commit --fixup followed by the hash of the commit you want to fix. When you're ready to push, run git rebase -i --autosquash to automatically merge those corrections into the original commits. Your teammates will thank you for the readable, professional history.