Skip to content

Instantly share code, notes, and snippets.

@alexperronnet
Created September 15, 2022 13:19
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 alexperronnet/62d77cc2dc736ab2f9b58cb6ae36f7b5 to your computer and use it in GitHub Desktop.
Save alexperronnet/62d77cc2dc736ab2f9b58cb6ae36f7b5 to your computer and use it in GitHub Desktop.
How to update Git submodules
  1. Clone repo with submodules
git clone --recurse-submodules git@github.com:${USERNAME}/${REPO}.git
  1. Navigate into repo
cd ${repo}
  1. Update submodules
git submodule update --remote
  1. Add update
git add .
  1. Commit
git commit -m "git submodule updated"
  1. Push
git push origin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment