美文网首页
2019-01-17 submodule

2019-01-17 submodule

作者: 半江瑟瑟 | 来源:发表于2019-01-17 15:00 被阅读6次

    To remove a submodule you need to:

    • Delete the relevant section from the .gitmodules file.
    • Stage the .gitmodules changes git add .gitmodules
    • Delete the relevant section from .git/config.
    • Run git rm --cached path_to_submodule (no trailing slash).
    • Run rm -rf .git/modules/path_to_submodule (no trailing slash).
    • Commit git commit -m "Removed submodule "
    • Delete the now untracked submodule files rm -rf path_to_submodule
    image.png
    image.png

    相关文章

      网友评论

          本文标题:2019-01-17 submodule

          本文链接:https://www.haomeiwen.com/subject/koridqtx.html