I am trying to cherry pick a commit from src-branch
to dst-branch
.
for example I have a commit that changes file1.txt
:
file1.txt
in src-branch
before commit:
hello world!
goodbye world!
file1.txt
in src-branch
after commit:
hello world!
goodbye world!
new changes here!
file1.txt
in dst-branch
before performing cherry-pick:
hello world!
file1.txt
in dst-branch
after performing cherry-pick:
hello world!
goodbye world!
new changes here!
But I expect that the file after the cherry pick will look like this (whithout goodbye world!
):
hello world!
new changes here!
because the line goodbye world!
was not included in the commit changes, and as far as I know cherry-pick
should only apply the changes of the specific commit.
I would like to now why this happends, and how can I prevent it. Thank you.