Perhaps you're looking for something like submodules?
Just create a Git submodule, and then push from within the submodule, like so: https://stackoverflow.com/a/5814351.
Just create a Git submodule, and then push from within the submodule, like so: https://stackoverflow.com/a/5814351.
Five years ago I inherited a project that had four repos sharing a Git submodule.
Now I tell people to never use Git submodules.
There's also just "meta" which is a cleaner way to approach the functionality of submodules https://github.com/mateodelnorte/meta.