I was working on a feature branch for quite some time. Now, I created a pull request to merge my branch but because my branch is very old, so there are many tests that are failing.
I want to move the starting point of my branch to a new commit without causing any changes to my existing PR.
I tried this but its not what I want-> I created a new branch and cherry-picked my commits to it. It works but doing this, I will have to create a new PR & there is already some comments on my PR. So, I dont want to lose them.
What I have is something like this:
master
A--B--C--D--...--M--...--Y--Z--
\ /
\ /
feature nA--nB--nC--nD--nE
What I want to do:
master
A--B-...--M--..............--Y--Z--
\ /
\ /
feature nA--nB--nC--nD--nE
Basically move the starting point of feature branch from C to M.
I heard about rebase but I didnt quite understand how that works, is ituseful in this case? I am a beginner, so please explain/give commands in detail.