# If want to set current local branch upstream git branch --set-upstream-to=origin/remote-branch-name-here # If not on the local branch that you want to set git branch --set-upstream-to=origin/remote-branch-name-here local-branch-name-here