Say you've done a merge:
git checkout mybranch
git merge master
then edited some files manually to deal with merge conflits.
git status will show all the files which have been modified, but git diff only appears to show changes in the files you've edited for merge conflicts. How can you see the changes relative to mybranch which the merge has introduced, before you commit the whole lot (after which I think you can just do git diff HEAD^ HEAD).
Coming from a mercurial background here so I am probably missing some concepts ...
The usual way to see diffs of staged files is
git diff --cached
It should work here as well
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With