Sep 21, 2017

It's always worth noting that git reset --hard is a potentially dangerous command

Since it throws away all your uncommitted changes. For safety, you should always check that the output of git status is clean (that is, empty) before using it.