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.