DEV Community

Discussion on: You don’t need the git CLI

 
fjones profile image
FJones

You shouldn't do that anyway. Per-line staging is reasonably simple (git add -p), but the real question is: why would you want to do that in the first place?

Normally, you'd want to commit an entire working changeset.

Thread Thread
 
noriller profile image
Bruno Noriller

When you have something small and contained... absolutely.

But when you start touching multiple things at once (and it can be as little as fixing a typo).
Then I do prefer on making an atomic commit, even if only changing a single letter.

More than that, multiple times I find myself working a whole feature that I can commit block by block with a more meaningful message than if I were to squash all of them in a single commit.