I have two GIT repositories and I would like to be able to sync only some of the directories (and their subdirectories) at a time.
Let's say I have two repositories containing the same directories tree as they started from a single base:
repo1/.git
repo1/A/file1
repo1/A/a/file2
repo1/B/file3
repo1/B/b/file4
repo2/.git
repo2/A/file1
repo2/A/a/file2
repo2/B/file3
repo2/B/b/file4
git pull from repo1 to repo2 would bring the changes in all the files. Instead of that, I would like for example to sync only the files below the A directory (file1 and file2) from repo1 into repo2 without syncing the files below the B directory (file3 and file4). Files below the B directory could be still be synced later on.
Is this somehow possible? How can I do that?
Thanks in advance for your answer(s).