I have cherry-picked the same commit twice, then merge current branch to a new branch, but the second cherry-pick does not work. Is that resonable?
I have a develop branch dev
, and have a config commit on dev
(like, switching to a different server) which may be applied multiple times later. Thus I try to use cherry pick to reapply it.
The first time cherry-pick works well. When I checkout to publish
branch and merge dev
into it, it contains my cherry-pick modification. But a few days later when I repeat this command (cherry-pick the same commit, then merge it info publish
), the publish
branch does not contains the modification.
I repeat this operation in another simple test repo, and it seems like when u cherry-pick the same commit multiple times, only the first time really works (when merge, of course). But I cant google any authoritative doc or blog claiming these things.
Can anyone tell me if my opinion is right and why is that, or what wrong operation I have made to occur this behavior? THX