Skip to content

Instantly share code, notes, and snippets.

@netanel-haber
netanel-haber / repo-rinse.sh
Last active August 13, 2023 11:45 — forked from nicktoumpelis/repo-rinse.sh
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