Maintain git repo inside another git repo

后端 未结 4 1619
慢半拍i
慢半拍i 2020-12-07 16:25

Here\'s what I\'d like:

REPO-A
  /.git
  /otherFiles
  /REPO-B
    /.git
    /moreFiles

I want to be able to push all of REPO-A\'s

4条回答
  •  遥遥无期
    2020-12-07 16:57

    It sounds like you want to use Git submodules.

    Git addresses this issue using submodules. Submodules allow you to keep a Git repository as a subdirectory of another Git repository. This lets you clone another repository into your project and keep your commits separate.

提交回复
热议问题