DEV Community

Toolloom
Toolloom

Posted on • Originally published at toolloom.com on

Clean Up Your History with Fixup

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.

Top comments (0)