finding name of remote and branch in github code example Example 1: git list remote branches git branch -r Example 2: check upstream branch git git status -sb