I\'d like to create a repo which pulls in a remote repo.
For example, let\'s say jQuery as a submodule:
git://github.com/jquery/jquery.git
I think that the @Hugo answer could be what you need and works fine. So I have found a easier way.
git submodule update --remote
That's all.
So a complete workflow could be:
git clone project-with-submodules git submodule init git config -l git submodule update --remote