Earlier I merged my feature branch in master which had a lot of commits and merging to master, created a merge commit in the master.
Later on, due to some issues, we had to revert the changes and this was done in another commit which says reverting merge commit of my feature branch.
Let suppose my merge commit is m
and commit which reverted it is r
.
Now again, I am starting my work on to resolve the issues which I had in my feature branch and I created a new feature branch from master and I want to get the code from my previous feature branch.
I tried doing cherry-pick but It gave me below error:-
error: commit is a merge but no -m option was given. fatal: cherry-pick failed.
I tried to do git merge <sha of my merge commit>
in my feature branch but it says
Already up-to-date.
I read a lot of git tutorial and SO answers but couldn't get a clear understanding of what would be the best in my situation.
Let me know If any additional information is required.