本地分支创建并切换到新创建的分支 git checkout -b xxxx 2.本地分支与远程分支进行关联 git branch --set-upstream-to=origin/远程分支名称 本地分支名称