git remote show origin tracked branch code example Example: git check upstream git remote show origin