Hacker News new | ask | show | jobs
by colinbartlett 4154 days ago
I use git add --patch

My teammates probably get tired of hearing it, but every time someone erroneously commits some file or line I advocate its use.

2 comments

Magit in emacs is great for this functionality. It will even add just the selected region of the diff.
I've defaulted to this for some time now, and have no issues with keeping my own smattering of me-specific configuration overrides. Plus, there are a couple other times when being able to work through the patching interface is a handy skill to have.