I believe I understand how submodule work, but in my case I don’t want to push it to my main repo as a simple reference to the remote repo, I want to push every content in the submodule to my main repo as well.
Is there a good way to do it?
Edit————
here is my situation, perhaps Im approaching it the wrong way so hopefully there is a better approach:
super_repo
|— some folders
|— sub repo
|——— some folders inside the sub repo that should be updated with the super repo
(well, just think of it like this: my project uses a certain framework that has some template folders etc inside itself)
“push every content in the submodule to my main repo as well” is a bit like merging two repos together.
That is call subtree merging: see “How do you merge two git repositories?“