6

I have two repositories on Github containing the same project, but they are not one the fork of the other.

Is there a way to do a pull request from one repository to the other? Is there a way to declare that the two repositories as forks?

marcosh
  • 8,780
  • 5
  • 44
  • 74

1 Answers1

4

No, you can only submit pull requests between repositories that have been forked from each other. GitHub support has removed a fork connection for me before, and I've heard they'll create one too, so you should give them a shot. If you want to do it yourself, you'll need a new repository, but can do this:

  • Fork a new repo from repo A
  • Add it as a remote from repo B
  • Push to it and submit a pull request to A

This will work as long as your two repos really are the same, and have a common ancestry. If they don't, you can ship code between them by creating and applying a patch, but that won't connect them at all on GitHub.

Kristján
  • 18,165
  • 5
  • 50
  • 62