Daily Software Tips & Tricks

Bite-sized knowledge to improve your coding skills daily.

Clean up your history with Git Interactive Rebase

February 10, 2026

Ever looked at your commit history and seen a mess of 'fixed typo' and 'temp' commits? Before you push your branch for review, try running `git rebase -i HEAD~n` (where n is the number of commits). It opens up a menu where you can 'squash' those tiny fixes into your main feature commit or 'reword' messages to be more descriptive. It keeps the project history clean and makes your senior reviewer much happier.