Re:How to teach Git
by LyndsySimon on Thursday January 17, 2019 @03:32PM
(#18934338)
`git add -p` is also very, very useful. I use it all the time, to the point that I've aliased it to `a`.
If you're interested, here's my .gitconfig, including all of my aliases: https://gitlab.com/lyndsysimon/dotfiles/blob/master/git/gitc...
Completely agree. I think a lot of people would enjoy git more if they made better use of the `-p` options.
Do you know about `git commit -p`? You might like it even more than `git add -p`.
Re:How to teach Git
by rachelmcarmena on Wednesday January 16, 2019 @05:05PM
(#18925923)
I didn't know "whatchanged", thanks! However, look at the description: https://git-scm.com/docs/git-whatchanged
Yea. It's technically deprecated, but it is also super useful so I don't see any reason not to use it.
Also `git whatchanged` is a super helpful command to see just the list of files that changed in each commit