1.查看本地分支 git branch 2.查看远程分支 git branch -a 3.如果要拉取的远程分支本地没有 git fetch 4.拉取远程新分支到本地 git checkout -b 本地分支名称 origin/远程分支名称 5.直接切换分支 git checkout 分支名称