用 git checkout 命令关联 # 拉取远程分支origin/branch到本地并创建一个新的关联分支 git checkout -b newbranch origin/branch 删除分支 git checkout -d branch 切换分支 git checkout branch