last Commit from you want to revert
git reset --hard <commit-hash>
then execute git push force to push you changes with your remote branch.
git push origin <branch-name> --force
last Commit from you want to revert
git reset --hard <commit-hash>
then execute git push force to push you changes with your remote branch.
git push origin <branch-name> --force