git diff local and remote branch code example Example: git diff with remote branch git diff @{upstream}