get branch origin git code example
Example 1: git bash upstream branch change
git branch --set-upstream-to=origin/branch
Example 2: git bash upstream branch change
git config --edit
git branch --set-upstream-to=origin/branch
git config --edit