Help needed to revert back to a previous github commit

I’ve managed to sort it by deleting my repo at Github, recreating it and then pushing my local one to it. Really simple solution that just works. Perhaps not as tidy as being able to do it with the existing repo but not a big deal.

Posting this in case someone else is in a similar position.