git diff <local branch> <remote>/<remote branch>
For example git diff master origin/master
, or git diff featureA origin/next
Of course to have said remote-tracking branch you need to git fetch
first; and you need it to have up to date information about branches in remote repository.