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