Can I unpopulate a Git submodule?

后端 未结 3 913
渐次进展
渐次进展 2021-02-08 23:57

Once I run

git update submodule

can I do anything to make it go back to the way it was before init and update?

3条回答
  •  情话喂你
    2021-02-09 00:53

    Try (with git1.8.3, April 22d 2013) a:

    git submodule deinit
    

    (See "How do I remove a Git submodule?")

    This removes the whole submodule. section from .git/config either for the given submodule(s)

    You might have to delete the working tree for that submodule though.

提交回复
热议问题