First of all, I will never use coding.net or gitee for my blog repos deploy, they are not confortable to me, so sad, so bad.
My hugo have three repos:
- hugo(hugo resource, private repo) - root
- zozo(theme/zozo, private repo) - submodule
- public(html files, public repo) - submodule
Maybe, you have this structure too.
I clone my repo
hugo to my other desktop, but
public folders are blank.
Now, fix it!
1. Just for submodules folders empty
- make sure
.gitmodulesames right, but cannot work,
git submodule sync.
git submodule initthen
git submodule updateto update
2. Even not cloned
git clone https://github.com/wedojava/blog.git --recurse-submodules, after this, submodules will be fetched done.
then, you may make some changes, need push, just do it, but notion that, cd your submodule folders and push them first may give you best wishes.
If some submodule cannot push and at the weird branch, just go to that path, run
git switch master then
git push or
Yes, just so easy as there. Here you go.