Git version 1.7.1 - CentOS 6.6
I am trying to cherry pick a range of commits.
I am in my feature
branch and the output of git log
is like below
commit: 111
Author: abc
time: xyz
commit: 222
Author: abc
time: xyz
commit: 333
Author: abc
time: xyz
commit: 444
Author: abc
time: xyz
commit: 555
Author: abc
time: xyz
And I go back to master
branch to pick a few commits from feature
branch.
I want to cherry pick from 444 to 222. So i pass the below command:
git cherry-pick 444^..222
But I get an error like below:
fatal: Cannot find '444^..222'
However, I can cherry pick a single commit. I'm pretty sure that my syntax is correct. I want to include commits 444,333 and 222 to apply in my target branch.
I can successfully do git show
for both the commits. Where am I going wrong?