Last active
April 5, 2021 08:36
-
-
Save shubhamagarwal92/2b15f67a11cbb20236f43fb281317f58 to your computer and use it in GitHub Desktop.
Adding and removing git submodules
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## 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