来自拉取请求的 GitHub 克隆? [英] GitHub clone from pull request?

查看:43
本文介绍了来自拉取请求的 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?

推荐答案

您可以通过使用 -b 选项和拉取请求来克隆您想要的分支:

You can clone the branch you want by using the -b option and for pull request:

git clone https://github.com/user_name/repo_name.git -b feature/pull_request_name dir_name

在您的情况下,您要克隆的分支是拉取请求的源分支 (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 ./mongoose-support

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

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