1、克隆代码到本地
git clone <链接地址>
2、克隆指定分支代码到本地
git clone -b <分支名称> <链接地址>
3、查看分支
git branch //查看本地分支
git branch -a //查看仓库所有分支
4、切换分支
git checkout -b <分支名称>
1、克隆代码到本地
git clone <链接地址>
2、克隆指定分支代码到本地
git clone -b <分支名称> <链接地址>
3、查看分支
git branch //查看本地分支
git branch -a //查看仓库所有分支
4、切换分支
git checkout -b <分支名称>