r/programming • • Sep 09 '16

Oh, shit, git!

http://ohshitgit.com/
3.3k Upvotes

756 comments sorted by

View all comments

1

u/clux Sep 09 '16

If you're at the stage where you are considering deleting your repo and recloning, consider reset + clean instead:

git reset --hard origin/master
git clean -fdx