Skip to content

Instantly share code, notes, and snippets.

@mitchallen
Created November 10, 2023 19:35
Show Gist options
  • Save mitchallen/3f20336cc996a67ba352b7634a2a864e to your computer and use it in GitHub Desktop.
Save mitchallen/3f20336cc996a67ba352b7634a2a864e to your computer and use it in GitHub Desktop.
How to clean a repo
git fetch origin
git reset --hard origin/main
git clean -fxd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment