[git] git: diff between file in local repo and origin

To compare local repository with remote one, simply use the below syntax:

git diff @{upstream}