Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Using Git submodules.
# CREATE: On the root folder of a Git repository:
$ git submodule add git@bitbucket.org:nicethemes/<repo>.git location/of/submodule
# Cloning a repo that contains submodules:
$ git clone --recursive git@bitbucket.org:nicethemes/<repo>.git location/of/repo
# Or:
$ git clone git@bitbucket.org:nicethemes/<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