Let\'s say I cloned a repository and started modifying files. I know that if I have local uncommitted changes, I can do a diff as follows git diff test.txt and it w
git diff test.txt
Given that the remote repository has been cached via git fetch it should be possible to compare against these commits. Try the following:
git fetch
$ git fetch origin $ git diff origin/master