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