Skip to content

Instantly share code, notes, and snippets.

@andrezrv
Created July 3, 2014 15:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save andrezrv/6703bafcd8fd29c7ed71 to your computer and use it in GitHub Desktop.
Save andrezrv/6703bafcd8fd29c7ed71 to your computer and use it in GitHub Desktop.
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