git clone某一分支上的代码
时间: 2023-09-07 12:16:06 浏览: 106
要克隆某一分支上的代码,可以使用以下命令:
```
git clone -b <branch-name> <repository-url>
```
其中,`<branch-name>` 是要克隆的分支名称,`<repository-url>` 是要克隆的仓库的 URL。
例如,如果要克隆名为 "develop" 的分支上的代码,可以执行类似以下命令:
```
git clone -b develop https://github.com/example/repository.git
```
这将克隆 "develop" 分支上的代码到当前目录。
阅读全文
相关推荐

















