git 拉取外网分支
时间: 2023-10-15 15:03:48 浏览: 186
可以使用以下命令拉取外网分支:
```
git clone -b <branch_name> <remote_repo_url>
```
其中,`<branch_name>` 是要拉取的分支名称,`<remote_repo_url>` 是远程仓库的 URL。
例如,要拉取名为 `develop` 的分支,可以使用以下命令:
```
git clone -b develop https://github.com/username/repo.git
```
这将会将远程仓库 `https://github.com/username/repo.git` 中的 `develop` 分支克隆到本地。
阅读全文
相关推荐
















