方法1:
# 可以把远程某各分支remote_branch_name拉去到本地的branch_name下,如果没有branch_name,则会在本地新建branch_name
git fetch origin remote_branch_name:branch_ame
# 然后切换分支
git checkout branch_name
方法2:
# 获取远程分支到本地,并切换分支
git checkout -b branch_name remotes/origin/remote_branch_name