How to set up a git project to use an external repo submodule?
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 What would be the process of creating a repo with jQuery as a submodule and adding my own external as a remote repo. Also once this is setup, if I push / pull to my own remote, will the external remain intact? You have a project -- call it MyWebApp that already has a github repo You want to use the jquery repository in your project You want to pull the jquery repo into your project as a submodule . Submodules are really, really easy to reference and use.