I have a folder structure similar to:
src
- .git
- Folder1
- folder1file1
- Common (inside this folder are commonfile1 and commonfile2)
- Folder2
- folder2file1
- Common (inside this folder are commonfile1 and commonfile2)
- Common
- commonfile1
- commonfile2
I used to have this in a SVN repository and recently moved to git, which I am just learning about. In SVN, Common was its own repository and Folder1 and Folder2 used External References to the main Common folder to reference into the Common folder under Folder1 and Folder2. So anytime I wanted to make a change to commonfile1 all I had to do was SVN Update in Folder1 and the latest changes inside Common would come over.
So considering this same folder structure in git (with everything under src being in the same git repo) how can I achieve the same functionality? I simply want to be able to use Folder1.Common and Folder2.Common like submodules. Is this possible with the main Common folder being part of the same master repository?