Git hard remove last commit

git reset --hard HEAD~1

Leave a Reply