简体   繁体   English

如何合并两个GitHub回购?

[英]How to merge two GitHub repos?

This question is not about how to merge two git repos; 这个问题不是关于如何合并两个git repos; that problem has already been discussed (keywords: "submodules", "subtree merging"). 已经讨论过这个问题(关键字:“子模块”,“子树合并”)。

The question here is, how to merge two GitHub repos? 这里的问题是,如何合并两个GitHub回购?

I wanted to preserve as many GitHub features/data from both GitHub repos as possible. 我想尽可能多地保留GitHub存储库中的GitHub功能/数据。 Most importantly, I want to preserve issues and wikis from both GitHub repos. 最重要的是,我想保留GitHub存储库中的问题维基

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. 我刚刚了解到GitHub wiki 是git repos自己 (摘要: git://github.com/you/proj.wiki ),我已成功将更改推送到我的wiki-repo。

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. 例如,你有一个像“ github-issue-importer ”这样的项目,它可以扩展为从一个GitHub仓库获取问题并将其导入另一个。

This gist seems to import from one GitHub repo to another. 这个要点似乎从一个GitHub仓库导入到另一个。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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