I commited some code changes to a branch which was the wrong one. I did not push the code but did a 'revert commit' in Sourcetree. This created another commit on the branch. I have not pushed this new commit either.
Since I don't want any commits to be made at all, is there any way back from this state now that the revert commit is already done?
Thanks