Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@xilin
Forked from nicktoumpelis/repo-rinse.sh
Created September 21, 2020 11:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xilin/08d20a8eb8d50f15639c0102e7efb7ba to your computer and use it in GitHub Desktop.
Save xilin/08d20a8eb8d50f15639c0102e7efb7ba 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