search

Home  >  Q&A  >  body text

How to directly convert nested sub-repositories in Github repositories into submodules?

I host a vim repository on Github, in which multiple plug-ins from Github (https://github.com/aben1188/vim/tree/master/vimfiles/bundle ) managed by Vundle all belong to sub-repositories nested in the vim repository.

I now want to convert these subrepositories into submodules. After checking online, I found that it is generally necessary to create a new folder as the parent warehouse, and then clone the original sub-warehouse into the new parent warehouse through a series of operations such as git submodule add, git submodule uptate, etc. (see here: http://gitbook.liuhui998.com/5_10.html)。

What I hope is, can these git sub-repositories be directly converted into sub-modules? In other words, instead of creating a new folder as the parent repository, just convert these sub-repositories directly into sub-modules in the current bundle folder?

滿天的星座滿天的星座2771 days ago631

reply all(1)I'll reply

  • 迷茫

    迷茫2017-05-02 09:38:18

    I used nodejs to encapsulate a small tool for managing multiple warehouses. Can you see if it can meet your needs?
    https://github.com/snowdream/node-gitm

    reply
    0
  • Cancelreply