Here’s how to do it:
- Go to the 'History' tab.
- Right-click the commit you want to go back to.
- Choose 'Reset current branch to this commit'.
- In the 'Reset to Commit' window, select a mode.
- Click 'OK' to confirm.
- Click 'Push'.
- Check 'Force Push' before pushing.
- Click 'Push', this effectively removes the pushed commits from the remote repo.