git clone 项目
作者:互联网
一、git clone 项目指定分支
git clone -b 分支名 仓库地址
二、git clone 项目所有分支
1、git clone 仓库地址
默认情况下 ,clone 的是master分支

2、使用 git branch -a 查看当前项目的其他分支信息

3、git remote show origin 查看 当前已经关联上的远程分支
(只有本地master 和远程master 关联上了)

4、新建本地分支 和远程分支进行关联 git checkout -b 本地分支名 origin/远程对应分支名 (通常本地和远程分支名保持一致)

继续查看 本地dev分支已经和远程分支 dev1 关联上了

标签:git,项目,clone,master,本地,远程,分支 来源: https://www.cnblogs.com/byhh/p/16440949.html