What would be the consequences of reverting the original commit while the same had been cherry-picked to the target branch?
There is a branch (say feature
) with some changes (commit: A), while this change was expected to be in another branch (say integration
).
So, I cherry-picked this change (commit: A) from feature
branch to integration
branch (resulting into a new commit: AC, in integration
branch).
However, due to testing needs, the feature
branch is not expected to contain this change (commit: A) at all.
Hence, I had to revert A from the feature
branch (resulting in a revert commit AR, in the feature
branch).
Now, if later I merge this feature
branch into the integration
branch, would there be any issues or conflicts in the changes that had been cherry-picked initially.
[After this merge, integration will have all the 3 commits, viz. A, AR, AC]
The commit AR will nullify the commit A, won't it nullify the commit AC too?