Daily Software Tips & Tricks

Bite-sized knowledge to improve your coding skills daily.

Mastering the Art of Partial Commits

March 2, 2026

Ever find yourself halfway through a feature and realize you’ve fixed three unrelated bugs in the same file? Instead of dumping everything into one messy commit, try using git add -p. This interactive mode lets you review every hunk of change, allowing you to selectively stage only what belongs to your current logical task. It’s a great way to keep your pull requests clean and your commit history readable for the rest of the team.