I'm quite new to using Git.
I'm working on a repository where I tried to refactor the code and failed so I ended up going back 1 commit on the master branch and worked instead on where I was at before. I've now made changes that I want to keep and do not want to merge with the commit ahead. The commit ahead is already on a remote repository as well.
What would be the solution that wouldn't disturb the commits on both my local and remote repositories whilst keeping the changes I made and not merging?
Here is a git log for clarification. The HEAD, master commit is the one I just tried to do but wouldn't let me. the origin/master is the one that is the the tip of the branch and also on Github (I think.)
* bb1d222 (HEAD, master)
| * 832e8af (origin/master)
|/
* 3293d35