简体   繁体   中英

How to merge two GitHub repos?

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM