I'm working on a feature right now which I suppose to do it in a featureX
branch BUT I forgot to create that branch and checkout into it. That cause a problem right now because that 2 commits already in my team remote master branch (we're using BitBucket) like so:
How do I move d40ef79
and 5e13fd7
into featureX
branch so that I can continue working on that featureX
branch and remove that 2 commits from master branch without losing recent commits created by my teammates (29ac4fb..1606c1a
)?
I try first option inside this answer and it doesn't work for me. I also try git cherry-pick
inside featureX
branch (branch off from master) - also doesn't work for me.