1、clone项目 git clone xxx (xxx为项目地址)2、clone非master分支 git branch 本地分支名称 origin/远端分支名称3、查看本地分支 git branch4、查看远端分支 git branch -r5、切换本地分支 git checkout 分支名称