【git | 15】git clone

git cone

1. git clone不指定分支,所有分支全部下载,并切换至master分支(main 分支)

git clone  http://10.1.1.11/service/tmall-service.git

2. git clone 指定分支,所有分支全部下载,并切换至dev分支

git clone -b dev http://10.1.1.11/service/tmall-service.git

3. 下载指定分支

git clone -b 分支 --single-branch url
原文地址:https://www.cnblogs.com/sunbines/p/14920445.html