Skip to content

Instantly share code, notes, and snippets.

@johnnymatthews
Last active October 29, 2019 20:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save johnnymatthews/7a4d23df9c4c1f111a3814c3eae8197e to your computer and use it in GitHub Desktop.
Save johnnymatthews/7a4d23df9c4c1f111a3814c3eae8197e to your computer and use it in GitHub Desktop.
# Add a submodule
git submodule add -b master https://github.com/mohnjatthews/docs content
git submodule init
# Update a submodule
git submodule update --remote
# Update a submodule that came with a cloned repo
git submodule update --init --remote
# Remove a submodule
git submodule deinit -f -- content
rm -rf .git/modules/content
git rm -f content
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment