Skip to content

Instantly share code, notes, and snippets.

@dsp1589
Created April 22, 2024 03:04
Show Gist options
  • Save dsp1589/7c4049d99576e02f64bde19f3f9394dc to your computer and use it in GitHub Desktop.
Save dsp1589/7c4049d99576e02f64bde19f3f9394dc to your computer and use it in GitHub Desktop.
Git repo clear reset
git reset --hard HEAD #reset to head commit
git clean -fdx #removes all untracked too
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment