git clone -b 下载指定分支的代码

1.git clone 不指定分支

 git clone  https://github.com/apache/hadoop.git

2.git clone 指定分支

git clone -b branch-2.9.2 https://github.com/apache/hadoop.git

其中的branch-2.9.2就是版本号

猜你喜欢

转载自blog.csdn.net/szw_yx/article/details/121962154