Github:我如何将未合并的上游拉请求拉入我的叉? [英] Github: How do I pull unmerged upstream pull requests in to my fork?

查看:113
本文介绍了Github:我如何将未合并的上游拉请求拉入我的叉?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

情况:



问题:


  • 上游回购似乎是无法维护的,因为其中一些pull请求已有一年或更长时间。

  • 我希望我的fork中有24个未合并的pull请求,但无法弄清楚如何获取他们。 (我愿意接受他们,如果不可能只接受一些)。



我没有做任何更改我的叉子,所以它基本上是上游回购的克隆。看起来这应该是非常简单的,但我无法弄清楚。我尝试了一些方法,但没有一个看起来很有效。




  • 在将我的fork克隆到本地机器后,我可以使用概述这里。但是,当我试图合并分支时,它失败了。同样,我试图直接从Github创建补丁,但 git am 未能成功应用。



预先感谢您的帮助!



PS这个问题被问及这里没有任何回应。

解决方案

您是否尝试添加将请求发送给远程的回购站,并将他们的主/任何分支合并到主分支中?


Situation:

Problem:

  • The upstream repo seems to be unmaintained because some of those pull requests are a year or more old.
  • I want some of those 24 unmerged pull requests in my fork, but can't figure out how to get them. (I would be willing to accept them all, if it's not possible to take only some.)

I have not made any changes to my fork, so it's basically a clone of the upstream repo. It seems like this should be pretty straightforward, but I can't quite figure it out. I've tried a handful of approaches, but none quite seem to work.

  • After cloning my fork to my local machine, I was able to gain access to the pull requests using the approach outlined here. However, when I attempted to merge the branches, it failed.
  • Likewise, I tried to create patches directly from Github, but git am failed to apply them successfully.

Thanks in advance for your help!

P.S. This question was asked here with no response.

解决方案

Have you tried adding the repos that sent the pull requests as remotes, and merging their master/whatever branch into your master branch?

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

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