I have a project that uses two library that are maintained seperately. To avoid the mess of manually copying files over every time the library changes, I managed to create two subtree using this example from github.
I have my own code in the root of this working directory. I also have foolib/
and barlib/
as subtrees from two other repos. Suppose I want to see if I can use version 1.20 of foolib instead of the master because I know that one's good and won't change. Then maybe I want to see if 1.21 is any better. My thinking is that if I do git checkout foolib-1.20
will put version 1.20 code in foolib/
for me. That doesn't happen. Instead the whole working directory is replaced with foolib 1.20. This is not very helpful and seems to negate the usefulness of git subtree
.