I\'ve a Xcode project which itself has Git Source Control. In a Libraries folder I\'ve cloned eight other Git project from GitHub. They are located inside my own Git re
You can use git submodule and clone repositories like this
Sure do the following:
Open your Terminal and execute the following commands
cd /path/to/your/main/repo
git submodule add git@github.com:someuser/somerepo.git somerepo
git commit -m "Added submodules"
Now instead of copying those files you'll have a reference to the other repository in your project:
Edit:
Now if you want to update the submodule to a more recent commit you can do the following:
cd somerepo
git pull # You can also checkout a branch / tag etc.
cd ..
git add somerepo
git commit -m "Telling the main repo to update the reference to the referenced repo"