Also hate them. Far better to have a dependency pulling shell script - no overhead of git yak shaving - just maintaining the URIs.
I Hate Git Submodules
11–20 of 73 posts
Re: I Hate Git Submodules
#12Re: I Hate Git Submodules
#13What do people think of git subtrees? https://codewinsarguments.co/2016/05/01/git-submodules-vs-gi... Or the non-standard git-subrepo? https://github.com/ingydotnet/git-subrepo
I came here to recommend subtrees. They're pretty good.
Have you run into any "slow push speeds" with subtrees, as the person complains about in the first article I linked?
Re: I Hate Git Submodules
#14What do people think of git subtrees? https://codewinsarguments.co/2016/05/01/git-submodules-vs-gi... Or the non-standard git-subrepo? https://github.com/ingydotnet/git-subrepo
Re: I Hate Git Submodules
#15Re: I Hate Git Submodules
#16What do people think of git subtrees? https://codewinsarguments.co/2016/05/01/git-submodules-vs-gi... Or the non-standard git-subrepo? https://github.com/ingydotnet/git-subrepo
+1 for subrepo.
Is git-subrepo good enough that it's worth the risk of using something not built into git (and the hassle of installing something extra)?
Re: I Hate Git Submodules
#17The main thing I learned is if you mess up any part of your submodule during creation - do not try to fix it. Just delete it from the parent repo and start over.
Also do not bother deleting it using git commands. Delete it in the .gitmodules file, then search your .git folder for every reference of the repo you want to delete (including folders named after it) and delete everything.
Either that or start with a clean parent repo clone.
Re: I Hate Git Submodules
#18Earlier quoted context omitted.
I came here to recommend subtrees. They're pretty good.
I guess my concern about subtrees is that they seem like they can result in unnecessary duplication / use of disk space. But the ability to work offline with a complete copy of the code seems worth the tradeoff in most cases, and git-lfs should help deal with large file sizes. Have you run into any "slow push speeds" with subtrees, as the person complains about in the first article I linked?