Earlier I asked about using Git Submodules for package management. See that topic:
Opinions on using Git Submodules for package management?
Ginger Bill recommended git subtree instead of git submodule:
I recently found out about git-subrepo.
-
This is an improvement from
git-submoduleandgit-subtreeby combining both their functionalities without their drawbacks. -
Even though you have to separately install it, the best part is that you don’t have to install
git-subrepoif you only want to clone and use the repository. -
Works on Linux, BSD, OSX, and Git for Windows.
You can read about all the benefits here: git-subrepo Benefits.
How I use this
I have a deps directory that contains other third-party Odin dependency packages as subrepos in my project.