Skip to content

Instantly share code, notes, and snippets.

@nanomobile
Forked from nicktoumpelis/repo-rinse.sh
Created June 24, 2018 08:09
Show Gist options
  • Select an option

  • Save nanomobile/433765623c3937ef52faf9f3ef7dda98 to your computer and use it in GitHub Desktop.

Select an option

Save nanomobile/433765623c3937ef52faf9f3ef7dda98 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