Messed up my Repo. Need help with discarding a commit and dding to the previous one on the main branch.

I wanted to rollback a commit. So I shifted to the commit before it. Then I added new commits on the one I switched to, not realising this is not happening on the main branch.

Now what do I do?

Neerav

How do I shift it back to 'main'?

Messed up my Repo. Need help with discarding a commit and dding to the previous one on the main branch.
 
 
Q