how to check which remote branch is tracked git code example Example: check upstream branch git git status -sb