Apr 11 2008
∞
The Thing About Git
I hit this same type of road block on a fairly regular basis. I try to keep commits atomic and by that I mean that I try to group related changes into single commits but so often I end up with a commit message saying “This and That fixed” where really I’d want two commits, one for This and one for That.
In the past with Subversion if I’ve needed to do this I’ve often copied the That part into my pasteboard or an unsaved file, commited This and then pasted That back in.
But wow git add --patch is probably what I’ve been hungering for all these years.