Daily Software Tips & Tricks

Bite-sized knowledge to improve your coding skills daily.

Clean Up Your History with Fixup

March 19, 2026

Ever find yourself with a trail of "oops," "typo," or "forgot a semicolon" commits? Instead of cluttering your history, try using git commit --fixup [hash]. It marks a commit as a correction for a previous one. When you're ready to merge, run git rebase -i --autosquash and Git will automatically fold those tiny fixes into the original commits. It keeps your PRs looking professional and your git history readable for the rest of the team.