3 ms·
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/
by sebmellen 6y ago
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 https://stackoverflow.com/a/5814351.
- ctb9 6y agoTen years ago I was told to never use Git submodules. Five years ago I inherited a project that had four repos sharing a Git submodule. Now I tell people to never use Git submodules.
- sebmellen 6y agoI think it very much depends how you use them. A great option to manage submodules is TwoSigma's "git-meta" https://github.com/twosigma/git-meta https://github.com/twosigma/git-meta. There's also just "meta" which is a cleaner way to approach the functionality of submodules https://github.com/mateodelnorte/meta https://github.com/mateodelnorte/meta.
- MaxBarraclough 6y agoI've not used them myself but a lot of people strongly dislike git submodules. A recent thread on the topic: https://news.ycombinator.com/item?id=26165445 https://news.ycombinator.com/item?id=26165445