how to know upstream branch of a local branch code example Example: check upstream branch git git status -sb