For a less painful [1] solution, see git-subrepo. [2] [1] https://github.com/ingydotnet/git-subrepo/blob/master/Intro.... [2] https://github.com/ingydotnet/git-subrepo
I use git-subrepo too, but it has its own sets of warts. It generates pretty verbose (and ugly) commit messages made of json. It doesn't let you do anything (like a pull or clone) when you working directory is dirty. But on the whole, it is often less painful than submodules. I haven't tried subtree yet, will do that next :-)
This was fixed recently. [1]
> I haven't tried subtree yet, will do that next :-)
The git-subrepo intro has a pretty good overview of the issues with git-subtree. [2]
[1] https://github.com/ingydotnet/git-subrepo/issues/40
[2] https://github.com/ingydotnet/git-subrepo/blob/master/Intro....