Skip to content

Instantly share code, notes, and snippets.

@edawson
Forked from nicktoumpelis/repo-rinse.sh
Created January 30, 2018 18:23
Show Gist options
  • Save edawson/f2d0be6a7b10d66b92e96a6b866fae53 to your computer and use it in GitHub Desktop.
Save edawson/f2d0be6a7b10d66b92e96a6b866fae53 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