Skip to content

Instantly share code, notes, and snippets.

@kuba--
Forked from nicktoumpelis/repo-rinse.sh
Last active October 1, 2021 06:57
Show Gist options
  • Star 7 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save kuba--/0b47e79846b829558a2de4a97e144647 to your computer and use it in GitHub Desktop.
Save kuba--/0b47e79846b829558a2de4a97e144647 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