Re:Understanding Git for real by exploring the .git directory
by icebraining on Sunday February 21, 2016 @08:21AM
(#11144387)
You can see all the files and drill down with "git add -i". Git also highlights whitespace problems.
Re:Understanding Git for real by exploring the .git directory
by pimlottc on Tuesday February 23, 2016 @09:48AM
(#11159158)
I 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.
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.