Revert to the Previous Commit Locally
git reset --hard HEAD~1
Force Push the Reverted State to Remote:
git push origin main --force
Note: In above command, main is your branch name
Revert to the Previous Commit Locally
git reset --hard HEAD~1
Force Push the Reverted State to Remote:
git push origin main --force
Note: In above command, main is your branch name