Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to merge two GitHub repos?

Tags:

git

github

This question is not about how to merge two git repos; that problem has already been discussed (keywords: "submodules", "subtree merging").

The question here is, how to merge two GitHub repos?

I wanted to preserve as many GitHub features/data from both GitHub repos as possible. Most importantly, I want to preserve issues and wikis from both GitHub repos.

How might I achieve that?


Info:

I have just learnt that GitHub wikis are git repos themselves (summary: git://github.com/you/proj.wiki), and I have successfully pushed changes to a wiki-repo of mine.

like image 815
easoncxz Avatar asked Nov 12 '22 20:11

easoncxz


1 Answers

Regarding issues, there is no native way to "import" them, you need to recreate them.

You have for instance a project like "github-issue-importer" which could be extended to fetch issues from one GitHub repo and import them in another.

This gist seems to import from one GitHub repo to another.

like image 155
VonC Avatar answered Nov 15 '22 04:11

VonC