Skip to content

Instantly share code, notes, and snippets.

@shubhamagarwal92
Last active April 5, 2021 08:36
Show Gist options
  • Save shubhamagarwal92/2b15f67a11cbb20236f43fb281317f58 to your computer and use it in GitHub Desktop.
Save shubhamagarwal92/2b15f67a11cbb20236f43fb281317f58 to your computer and use it in GitHub Desktop.
Adding and removing git submodules
## Adding submodules
git submodule add https://github.com/path/to/the_submodule
git submodule init
git submodule update
## Removing submodules
# https://stackoverflow.com/a/21211232/3776827
git rm the_submodule
rm -rf .git/modules/the_submodule
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment