git how to see remote branch code example Example 1: git get remote branches git branch -r Example 2: git bash upstream branch change git config --edit