Skip to content

Instantly share code, notes, and snippets.

@instagrim-dev
Forked from nicktoumpelis/repo-rinse.sh
Created September 29, 2023 23:13
Show Gist options
  • Save instagrim-dev/4f8355401821c660ed74aac11e48fce0 to your computer and use it in GitHub Desktop.
Save instagrim-dev/4f8355401821c660ed74aac11e48fce0 to your computer and use it in GitHub Desktop.
Cleans and resets a git repo and its submodules
git clean -xfd
git submodule foreach --recursive git clean -xfd
git reset --hard
git submodule foreach --recursive git reset --hard
git submodule update --init --recursive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment