git reset --hard HEAD, I cannot remember how many hundreds of thousands times I used this snippet and it saved me from disaster.
git reset --hard HEAD
New comers think twice before using git reset —hard
git reset —hard
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.