使用Git下载指定分支命令为

使用Git下载指定分支命令为:

git clone -b 分支名 仓库地址
 

例如:

git clone -b dev  https://github.com/xxx.git
 

将下载分支名为2D-Attention的分支仓库。

如果直接:

git clone https://github.com/xxx.git
 
原文地址:https://www.cnblogs.com/xiao-xue-di/p/12765447.html