How to rebase so your branch comes from main?

45 Views Asked by At

I stupidly started a branch that didn't come from main but from the branch I was working on just before. I only realised it after creating a merge request and after all the changes were done.

I only ever used git rebase during a merge. How can I use it to have a clean merge request ?

Thank you !

0

There are 0 best solutions below