Skip to content

Instantly share code, notes, and snippets.

@netanel-haber
Forked from nicktoumpelis/repo-rinse.sh
Last active August 13, 2023 11:45
Show Gist options
  • Save netanel-haber/13e33f5e4e4aea32351b7a416afda31e to your computer and use it in GitHub Desktop.
Save netanel-haber/13e33f5e4e4aea32351b7a416afda31e to your computer and use it in GitHub Desktop.
add --remote
# https://stackoverflow.com/questions/3796927/how-do-i-git-clone-a-repo-including-its-submodules/56833308#comment132351771_56833308
git submodule foreach --recursive git clean -xfd
git submodule foreach --recursive git reset --hard
git submodule update --init --recursive --remote
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment