Skip to content

Instantly share code, notes, and snippets.

@constrict0r
Last active September 13, 2019 18:14
Show Gist options
  • Save constrict0r/8a66c2cf411af4fa27350505c5ed4829 to your computer and use it in GitHub Desktop.
Save constrict0r/8a66c2cf411af4fa27350505c5ed4829 to your computer and use it in GitHub Desktop.
Handle git submodule.
# Add.
git submodule add -b branch_name https://github.com/constrict0r/submodulename optional_directory_rename
# Get.
git submodule update --init --recursive
git submodule update --recursive
# Remove.
git rm submodulename
rm -rf .git/modules/submodulename
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment