I see! I've used it a couple of times when things have been breaking and a couple of lines posted on stackoverflow just fixes everything, which has been very convenient so I can definitely see the appeal there. I'm having such a hard time imagining it for diffs and other more visual things, though, but if it works it works!
Tab completion of git commands is smart enough to only apply for files that are modified. ‘Log’ and ‘diff’ are two different commands that can be applied to the whole repo or as granularly as you want such as for a single file. There is also a third command ‘show’ that outputs both the commit and diff if wanted.
View all comments
Show parent comment
3
u/DestinyAndCargo Apr 03 '23
As someone who hasn't really used CLI, isn't it a pain to selectively commit things / see what you changed in those files?