4 ms·
I recently started using git subtree[0] instead of dealing with all the problems with git submodules, and have been very happy with the experience so far. It do
by tommyjl 4y ago
I recently started using git subtree[0] instead of dealing with all the problems with git submodules, and have been very happy with the experience so far. It does copy every file into your repository, though.
[0]: https://github.com/git/git/blob/master/contrib/subtree/git-subtree.txt https://github.com/git/git/blob/master/contrib/subtree/git-s...
- matthewmacleod 4y agoThis is funny - I was going to chip in and say that you really start to appreciate submodules once you’ve experienced the fractal hell of subtrees! If I ever have to untangle a messed-up repository containing a subtree again in my life I’m quitting development and moving to a cabin in the woods.
- tommyjl 4y agoHaha, my usecase is really simple. I have a couple of applications that need to run at the same time on the development machines and they only need to be updated once or twice a year. With subtrees, only the one person who maintains the subtrees actually needs to care about the other applications, and the other developers can mostly ignore that the other applications exist. If we used containers, a Docker compose file would make things even simpler for us, but alas.
- preseinger 4y agoI have exactly the opposite experience. Submodules are hell, subtrees are simple.
- silon42 4y agoAgreed.