how to see the upstream branch in git code example Example: git check upstream git remote show origin