从分支git clone

git clone -b <branch> <remote_repo>

具体用法:git clone -b 分支名 https://www.xx.com/app.git

以上就可以从分支下载了

分支名:可以从分支中查询,比如可以是个版本号

https://www.xx.com/app.git

这个是git的地址

原文地址:https://www.cnblogs.com/jiduoduo/p/12310700.html