the upstream branch of your current branch code example Example: check upstream branch git git status -sb