1

git 如何合并多个无关的仓库,形成一个仓库?

 1 year ago
source link: https://www.v2ex.com/t/862843
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

V2EX  ›  git

git 如何合并多个无关的仓库,形成一个仓库?

  sillydaddy · 2 小时 54 分钟前 · 613 次点击

应用场景是想偷懒把多个项目已经建好的仓库合并,用一个 git 仓库来管理,

举例来说,原项目 1 的仓库在文件夹 repo1 ,原项目 2 在文件夹 repo2...,项目之间没有依赖关系。现在新建一个新文件夹 repo ,然后将 repo1 和 repo2 都作为子文件夹放到 repo 中。但是如何把项目 1 和项目 2 的历史提交记录合并到一起呢?


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK