I have a repo with file foo in the master branch. I switched to bar branch and made some changes to foo. How can I now run a git diff
foo
git diff
To see local changes compare to your current branch
git diff .
To see local changed compare to any other existing branch
To see changes of a particular file
git diff --
Make sure you run git fetch at the beginning.
git fetch