My question is similar to Rebase feature branch onto another feature branch
While working on a feature, we mistakenly made a commit in "Feature 1" branch Commit C
which was reverted and create a branch for the sub-feature and cherry picked the commit.
A - B - C - C"(Revert C) - D -- Feature-1
\
C'(Cherry Pick C) - E - F - G -- Branch-1
Now few bug fixes were merged onto Feature 1 which are needed for my branch to pass the tests. Hence I want to rebase Branch 1 so that it looks like
A - B - C - C"(Revert C) - D -- Feature-1
\
C'(Cherry Pick C) - E - F - G -- Branch-1
I tried to rebase the using (On Branch-1)$ git rebase Feature-1
but this did not pick the commit C'
as it finds it is already present in the branch.
How should I do the rebase ?