Daily Software Tips & Tricks
Bite-sized knowledge to improve your coding skills daily.
Keep Your History Clean with Git Fixup
May 3, 2026
We have all been there: you just committed a feature, but realized you left a stray console log. Instead of creating a messy 'oops' commit, use the fixup command. You can stage your change and run git commit --fixup [commit-hash]. When you are eventually ready to push, run git rebase -i --autosquash to automatically merge those tiny fixes into the original commits. It keeps your pull request history incredibly clean and makes your reviewers' lives much easier.