Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Github: How do I pull unmerged upstream pull requests in to my fork?

Tags:

git

github

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.

like image 558
Scott Porad Avatar asked Oct 16 '25 23:10

Scott Porad


1 Answers

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

like image 128
Denis de Bernardy Avatar answered Oct 18 '25 13:10

Denis de Bernardy



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!