Let's say my project is laid out as follows:
│ ├── ExamplesA
│ ├── ExamplesB
│ └── ExamplesC
OK, this is how I did it.
TheLibrary to the
TheLibrary branch using
git subtree split -P TheLibrary -b TheLibrary
and then I made a separate branch for maintaing a copy of
TheLibrary in TFS or wherever.
git branch TheLibrary-tfs TheLibrary
So then I simply
cloned the repository into my TFS workspace and checked out the
Whenever I make TFS-specific change, I simply
push it and it's saved in my local folder outside of the TFS repository.
Whenever I need to make a TFS-unrelated change, I do it in my local folder in the
master branch and then
git subtree push -P TheLibrary . TheLibrary
so that the change is propagated to the
TheLibrary branch. Then I merge the changes to the
TheLibrary-tfs branch. Finally, I simply navigate to my TFS workspace and
pull the changes from my local folder. Complicated, but works and appears to be just what I needed.