6 ms·
It's much easier when you can see all of the staged/unstaged files and drill down to staging/unstaging individual lines within those files. It also highlights
by EvanPlaice 11y ago
It's much easier when you can see all of the staged/unstaged files and drill down to staging/unstaging individual lines within those files.
It also highlights whitespace nastiness (ie trailing spaces, missing newline at end of file, inconsistent newline chars, etc).
The CLI is the ideal too for a lot of things. Preparing commits is not one of them.
- icebraining 11y agoYou can see all the files and drill down with "git add -i". Git also highlights whitespace problems.
- pimlottc 11y agoI was excited when I first heard about git add iteractive mode but I find the interface to be quite unintuitive and idiosyncratic. I just stick to using "git add -p" to stage hunks selectively in a much more straightforward manner. Having said that, I stage all my commits on command line, and generally go to a GUI rarely for certain visualization tasks.