Git submodules in .gitmodules not initialized

https://github.com/Uni-/shBrushesCollection

I opened a GitHub repo and wrote .gitmodules in GitHub web source editor. When I cloned the rpo, I found the submodules in .gitmodules are not being initialized.

I think I tried almost all commands possible, including update, init, update --init and so on. Is there a way to use current .gitmodules file, not submodules add?


Writing a submodule isn't enough.

You should rather use git submodule add : that will update your .gitmodules file and create a special entry in the index (where you want that submodule to be loaded).

Then, when you push that to your upstream repo on GitHub, the project page will display those special entries as a green folder.

绿色文件夹

链接地址: http://www.djcxy.com/p/92278.html

上一篇: git子模块中的提交如何在持续集成中触发构建?

下一篇: .gitmodules中的Git子模块未初始化