View uninstall diff from git interactive add

I use Git to add interactive mode ( git add -i ) for the first time and ask a question about the diff that it offers. By default, it shows diff for the changes I have already made (which is equivalent to using git diff --staged ). Is there a way to show how it differs from unspecified changes? This would be very useful when I needed to selectively add some files for staging and see what changes I made before adding them. I would like to do this without leaving the interactive mode or opening another terminal for regular git diff .

+5
source share
1 answer

With the git add -p or patch git add -i option, you see the individual modified pieces before you decide whether to create them or not. You can also change between uninstalled pieces of a file before deciding whether to install hunks or not.

+3
source

All Articles