The scenario is as below:
Assume that the state of master
and develop
branches are A
, feature/issue-1
branch is B
.
feature/issue-1
branch is created from master
branch.
Merge the code of branch
feature/issue-1
intomaster
branch.
Nowmaster
branch hasB
code.Some errors found.
Revert the merged commits atmaster
branch, withgit revert MERGE_COMMIT -m 1
command.
Nowmaster
branch hasA
code.Merge the code of branch
feature/issue-1
intodevelop
branch.
Now,develop
branch hasB
code.Create
feature/issue-2
branch fromdevelop
branch.
Nowfeature/issue-2
branch hasB
code.Add some codes in
feature/issue-2
branch.
Nowfeature/issue-2
branch hasB
+C
code.Merge the code of branch
feature/issue-2
intodevelop
branch.
Nowdevelop
branch hasB
+C
code.Trying to merge the code of branch
develop
intomaster
branch.
I'm in the number 7 situation.
I opened a pull request to merge develop branch into master branch.
But when I check file changed
in the opened pull requests, changes about B
are not shown, and only C
is shown.
Is this because I reverted B
code before?
How can I resolve this?