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