Skip to content

Instantly share code, notes, and snippets.

@aboron
Forked from nicktoumpelis/repo-rinse.sh
Last active June 17, 2021 20:37
Show Gist options
  • Save aboron/d2f5cf8edabf64ccc9cb8a42bcce46fe to your computer and use it in GitHub Desktop.
Save aboron/d2f5cf8edabf64ccc9cb8a42bcce46fe to your computer and use it in GitHub Desktop.
Clean, reset, and update a git repo and its submodules
git clean -xfdf
git reset --hard
git update
git submodule foreach --recursive git clean -xfdf
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