git set remote to branch code example Example 1: git bash upstream branch change git config --edit Example 2: check upstream branch git git status -sb