简体   繁体   English

将git repo迁移到另一个repo的子模块

[英]Migrate git repo to another repo's submodule

I have a git repository and I would like to migrate it to another one, but to its submodule. 我有一个git存储库,我想将其迁移到另一个,但是迁移到其子模块。 Is it possible? 可能吗? It's due to having repo for Frontend and Backend separately and now, I would like to migrate it to one common repo, where I would like to store both together, but in two seperate submodules. 这是由于分别有前端和后端的存储库,现在,我想将其迁移到一个通用存储库,我想将两者存储在一起,但是存储在两个单独的子模块中。

Thanks a lot for your time! 非常感谢您的宝贵时间!

You can use this repo "as is" and use it as a sub-repo in your "master repo": 您可以按原样使用此存储库,并将其用作“主存储库”中的子存储库:

https://github.com/git-commands/git-subrepo https://github.com/git-commands/git-subrepo

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

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