Somehow I've created a git mess where the latest commit is wrong but the previous commit is right.
I tried to revert to the previous commit in Tower (right click) but that created some kind of merge which didn't fix the issue and now things look messier than ever.
I've created a new branch from the commit I know to be correct and have tested it and everything looks great.
Question: is it possible to simply replace the master branch with this new branch?
I obviously want to avoid creating an even bigger mess so would like to know if this is possible or if this is even a good idea? All the search results look scary as I don't fully understand what they're going to do.
For the life of me I don't know what went wrong as the repo only contained one branch.
OK, so if you you'd like to replace master with a commit in Tower/Github, here's what worked for me:
Now you've migrated master over to a new branch locally and on the remote.