Git Submodules. Pulling into a new clone of the super-project

前端 未结 6 583
迷失自我
迷失自我 2021-01-30 03:35

OK. So I thought I had this licked ... but now ....

I have a project which includes one small library from GitHub as a submodule. In the original version of that super-p

6条回答
  •  [愿得一人]
    2021-01-30 04:34

    Solved by deleting 2 directories and refetching submodule:

    1. Go to external_libraries/BEACHhtml and look into .git file. It's content should be something like gitdir: ../../.git/modules/external_libraries/BEACHhtml
    2. Delete both external_libraries/BEACHhtml and .git/modules/external_libraries/BEACHhtml directories.

    From now on git submodule update runs without errors.

提交回复
热议问题