Skip to content

Instantly share code, notes, and snippets.

@tdomarkas
Forked from nicktoumpelis/repo-rinse.sh
Created October 12, 2018 14:04
Show Gist options
  • Save tdomarkas/8cd4e0b29582fcfc3d4c6c0a0863ed1c to your computer and use it in GitHub Desktop.
Save tdomarkas/8cd4e0b29582fcfc3d4c6c0a0863ed1c 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