Revert git last push commit

GIT

Mustufa Rangwala

Use below commands which will revert pushed last commit:

git reset --hard HEAD@{1}

git push -f