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