get the difference between remote and local git code example Example: git diff with remote branch git diff @{upstream}