0

Let say I have access to repo1 and repo2 and want to track changes of one subdirectory in repo2. The structure of repo2 is

 repo2
   |
   |---folder1
   |---folder2
   |---folder3 

I want to track only folder 2 in repo1. In other words if there are any changes in folder2, I need folder2 to be updated in repo1 . Is there any way to do that?

PS :I have tried submodule, But it is including folder1,floder2,folder3.

manoj manu
  • 15
  • 3
  • See [How do I clone a subdirectory only of a Git repository?](https://stackoverflow.com/questions/600079/how-do-i-clone-a-subdirectory-only-of-a-git-repository) - check this answer: [sparse checkout](https://stackoverflow.com/a/13738951/10441671) – Peter Krebs Aug 11 '21 at 12:04

0 Answers0