My repository in git looks like this:
-Project Repo
-Sub Folder 1
-File 1
-File A
-Sub Folder 2
-SubSub Folder
-File 2
-File B
File 1 and File 2 are exact copies and rather than manually sync them, I’d like to do that automatically with git. At the same time Files A and B are not the same and I do not want them to be sync’d across. Is it possible to keep to files in sync in git?
Hopefully a symbolic link is all you need.
If you are in Linux/Unix you would issue the symlink creation command as follows:
In a version of Windows that support symbolic links, you can try the mklink command: