Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Using Git submodules.
# CREATE: On the root folder of a Git repository:
$ git submodule add<repo>.git location/of/submodule
# Cloning a repo that contains submodules:
$ git clone --recursive<repo>.git location/of/repo
# Or:
$ git clone<repo>.git location/of/repo
$ git submodule init
$ git submodule update
# Deleting a submodule:
$ git submodule deinit location/of/submodule
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment