Git submodule add: “a git directory is found locally” issue

后端 未结 6 1312
南旧
南旧 2020-12-22 15:10

I\'m actually trying to learn how to use git, including the git submodule subcommands. I already set up a server on which I can host, push and pull git reposito

6条回答
  •  旧时难觅i
    2020-12-22 15:39

    You can do this while cloning your submodule:

    git submodule add --name submodule_name submodule path

    This will add your submodule into your project and will be added as a structure under .gitmodules file.

    And then if you don't want the older one you can remove it from .gitmodules structure and delete the submodule folder from the project.

提交回复
热议问题