Daily Software Tips & Tricks
Bite-sized knowledge to improve your coding skills daily.
Clean up your history with Git's fixup
April 5, 2026
Ever find yourself making tiny "typo fix" or "forgot a semi-colon" commits that clutter your branch history? Instead of leaving those messy logs for your teammates to see in a PR, try using git commit --fixup <hash>. It marks the commit as a fix for a previous one. When you're ready to push, run git rebase -i --autosquash main, and Git will automatically fold those tiny changes into the original commits. It keeps your history looking like you’re a genius who gets it right the first time.