SyntaxFix
Write A Post
Hire A Developer
Questions
There are two commands which will work in this situation,
root>git reset --hard HEAD~1
root>git push -f
For more git commands refer this page