I have a develop branch and a main branch. Of course, I was supposed to be developing on the develop branch (but I was on main). I work alone in this project, so the only changes were made by me.
This is what I did:
Both main and the develop were on the same commit. Because I had merged develop to main at some point.
Then I started coding and committed twice on main, thinking I was in the develop branch.
So now my main branch is 2 commits ahead of the develop branch. This is the opposite of where I should be right now.
Anyway, I'm fine with the commits I made, but now I need my to branches to meet again at the same point (i.e: I need my develop branch to also incorporate those two commits that I made on main by mistake).
What should I do? Rebase or merge main to develop?
NOTE: It was only local. No pushes were made.