GitHub克隆从拉请求? [英] GitHub clone from pull request?

查看:118
本文介绍了GitHub克隆从拉请求?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想从GitHub克隆一个存储库。问题是我不想要主分支;我希望这个未经批准的拉取请求

I would like to clone a repository from GitHub. The problem is I don't want the main branch; I want the version in this unapproved pull request.

是否可以克隆拉请求版本而不是主存储库?

Is it possible for me to clone the pull request version instead of the main repository?

推荐答案

您可以通过使用 git clone 命令中的 -b 选项克隆所需的分支。

You can clone the branch you want by using the -b option in the git clone command.

在你的情况中,你想克隆的分支是pull请求的源分支(feature / mongoose-support):

In your case, the branch you want to clone is the source branch of the pull request (feature/mongoose-support):

git clone https://github.com/berstend/frappe.git -b feature/mongoose-support /my_clone

这篇关于GitHub克隆从拉请求?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆