Clearing up git submodules problems

Clearing up git submodules problems

As some of you noted I moved by blog into Hugo . During the build process you have to pull many git repositories to compile full project. Because begging are always hard. For me it’s always trial and error I ended up with having many sub-repositories missing. I’m not going to show whole journey how to solve “the issue”.

To list submodule you can use something like that:

git submodule

And then you can look deeper:

git ls-files --stage | grep 160000

and you get something like that:

160000 cef4cf89570a56ca85abcfc6b685844ed605875f 0	Mainroad
160000 b2bdfdb625f38211ca8f107566175c71ea479c6a 0	themes/mainroad
160000 cef4cf89570a56ca85abcfc6b685844ed605875f 0	themes/mymainroad

To fix missing dependencies just use:

2799  git rm --cached themes/mainroad