Skip to content

Instantly share code, notes, and snippets.

@aboron
aboron / repo-rinse.sh
Last active June 17, 2021 20:37 — forked from nicktoumpelis/repo-rinse.sh
Clean, reset, and update a git repo and its submodules
git clean -xfdf
git reset --hard
git update
git submodule foreach --recursive git clean -xfdf
git submodule foreach --recursive git reset --hard
git submodule update --init --recursive