As this was a bit of a head-scratcher for me I decided I would document exactly the steps on how to delete a commit which has been pushed to a remote repo.
Keeping it concise, so here goes:
- Select the commit you want to go back to
- Right-click and choose the option “Reset current branch to this commit”
- Select your branch and choose option Push to → {branch}
- Make sure Force Push option is checked
- Push your changes
So that’s about it. I spent about 2 hours trying to work out something which seemed so simple, but now I know.