Probably, i misunderstood how git works, I have my directory structure as follows:
project (git-repo)
project 1 (git-repo)
project 2 (git-repo)
common scripts (git-repo)
All these folders have their own repositories where the main project can have child repositories such as project 1, project 2, child scripts. They can be submodules or subtree. The problem, the common scripts contain some of the codes that is common and essential to build both project 1 and project 2. What can be best strategy to maintain this so that each project can be independent as well as no need to keep common scripts in two places.