Last Updated: February 25, 2016
·
187
· 7bitadam

Git - When nothing else will succeed and you need to reset your master

git reset --hard <commit-hash>
git push -f origin master

When i was met with trying to rectify a master branch, this hard reset solved all my problems.