Daily Software Tips & Tricks

Bite-sized knowledge to improve your coding skills daily.

Mastering the Partial Commit

February 16, 2026

Ever find yourself finishing a feature but realizing you’ve also fixed three unrelated bugs in the same file? Instead of committing everything in one messy lump, try using git add -p. This patch mode lets you review every single change, or hunk, and decide individually whether it belongs in the current commit. It’s a lifesaver for keeping your pull requests clean and your git history readable for the rest of the team.