Github:我如何将未合并的上游拉请求拉入我的叉? [英] Github: How do I pull unmerged upstream pull requests in to my fork?
问题描述
情况:
- Github上有一个回购: http://github.com/otheruser/reponame 。此回购有24个未合并的拉请求。
- 我已将它分叉为 http: //github.com/myusername/reponame 。
问题:
我没有做任何更改我的叉子,所以它基本上是上游回购的克隆。看起来这应该是非常简单的,但我无法弄清楚。我尝试了一些方法,但没有一个看起来很有效。
- 在将我的fork克隆到本地机器后,我可以使用概述这里。但是,当我试图合并分支时,它失败了。同样,我试图直接从Github创建补丁,但
git am
未能成功应用。
预先感谢您的帮助!
PS这个问题被问及这里没有任何回应。
您是否尝试添加将请求发送给远程的回购站,并将他们的主/任何分支合并到主分支中?
Situation:
- There is a repo on Github: http://github.com/otheruser/reponame. This repo has 24 unmerged pull requests.
- I have forked it to http://github.com/myusername/reponame.
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屋!