Hacker News new | ask | show | jobs
by sidpatil 2426 days ago
I'm still not too familiar with the differences between subtree and submodule. When should I use either?
1 comments

subtree is more transparent to users of the repo as it is basically pulling in a copy of the repository during the clone. submodules on the other hand are only storing the metadata pointer to the child repo and require users to manually clone. I have more information regarding subtree (and subtree merge strategy) on this answer: https://stackoverflow.com/a/33579069/2105636