Git: Push a local git submodule, including submodule files, to a remote bare repository
问题 I have two local projects which I manage with git , one being dependent on the other – like this: project A/ ├── project B/ │ ├── file B₁ │ ├── file B₂ │ ├── … It makes sense to me to have project B as a git submodule of project A . Now, I have set up a remote bare repository for project A for backup and sharing purposes. Of course, I want the remote repository to contain all of project B , including its files ( file B₁ , file B₂ , …). But git push and git push --recurse-submodules=on-demand