hard reset git to last commit

git reset --hard HEAD~

#same as 

git reset -hard HEAD~1
    

then git push -f