How to `git submodule add` Existing sub Repository?

后端 未结 5 1896
既然无缘
既然无缘 2021-01-18 02:56

The Question

How to add existing sub repository as a submodule in git?

The Why

I have a private codespace supermodule with submodule

5条回答
  •  醉梦人生
    2021-01-18 03:21

    You don't need to clone manually first. After running git submodule add [url] [path] run git submodule update, which will clone/pull all submodules for you.

提交回复
热议问题