Daily Software Tips & Tricks
Bite-sized knowledge to improve your coding skills daily.
Mastering the Git Fixup
April 4, 2026
Ever find yourself making tiny 'oops' commits right after a big one? Instead of cluttering your history, try using git commit --fixup followed by the commit hash. It marks the commit for merging later. When you're ready to clean up, run git rebase -i --autosquash and Git will automatically reorganize and squash those little fixes into the original commit for you. It’s a great way to keep your PRs looking professional and your history readable without the manual labor of a standard interactive rebase.