Github:叉请求拉 [英] Github : Fork with pull requests

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

问题描述

我正在处理这段代码: https://github.com/samvermette/SVPullToRefresh



这有很多pull请求待处理。但由于某些原因,作者无法接受。

所以我决定去Fork项目并接受一些可以改进代码的请求。



但是当我分叉项目时我没有在Forked副本中获得所有的Pull请求。



有什么办法可以在我的分叉拷贝中得到所有的请求?



非常相似:在Github上分叉请求



但我无法知道如何去做。我无法找到如何编写单元测试。



我得到一些答案,需要在我的计算机上获得本地副本,而不是使用某些git命令。但我认为应该有办法在网络界面上进行。告诉我,如果我错了。

解决方案

您不会从原始的上游你的fork中的repo,但你仍然可以将它们导入到你的本地克隆中:

  git remote add / upstream / url / of / original / repo 
git config remote.origin.fetch+ refs / pull / * / head:refs / remotes / upstream / pr / *

pull / ID 分支命名约定在GitHub帮助中提及页面修改非活动拉本地请求



这样,您可以合并任何上游/ pr /< ID> 你想在本地仓库中使用的分支。


I am working on this code : https://github.com/samvermette/SVPullToRefresh

This have many pull request pending. But due to some reason Author is not able to accept.

So I decide to Fork project and accept some of the request which can improve code.

But when I fork project I don't get all that Pull request in Forked copy.

Is there any way to get that all pull request in my forked copy?

I Get this question which is very similar : Fork a Pull request, on Github

But I am not able to know how to do it. I am not able to find how to write "unit tests".

I get some answer which require to get local copy on my computer and than work with some git commands. But I think there should some way to do it on web interface only. Tell me if I am getting wrong.

解决方案

You won't be to see the PR from the original "upstream" repo in your fork, but you still can import them in your local clone:

git remote add upstream /url/of/original/repo
git config remote.origin.fetch "+refs/pull/*/head:refs/remotes/upstream/pr/*"

(The pull/ID branch naming convention is mentioned in the GitHub help page "Modifying an inactive pull request locally")

That way, you can merge any upstream/pr/<ID> branch you want in your local repo.

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

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