📅  最后修改于: 2022-03-11 14:49:27.581000             🧑  作者: Mango
# 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