SyntaxFix
Write A Post
Hire A Developer
Questions
First you need to determine the revision ID of the last known commit. You can use HEAD^ or HEAD~{1} if you know you need to reverse exactly one commit.
HEAD^
HEAD~{1}
git reset --hard <revision_id_of_last_known_good_commit> git push --force