$ git cherry-pick 2555c6e error: could not apply 2555c6e... [Description]:branch2 commit 2 hint: after resolving the conflicts, mark the corrected paths hint: with'git add <paths>'or'git rm <paths>' hint: and commit theresultwith'git commit'
# 回退上次提交,再此进行cherry-pick $ git reset --hard HEAD~ HEAD is now at f8bc5db [Description]:branch2 commit 2 $ git cherry-pick -n 23d9422 $ git status On branch branch1 Changes to be committed: (use "git reset HEAD <file>..."to unstage) modified: only-for-branch2.txt
$ git cherry-pick \-e 23d9422 [Description]:branch2 commit 3 # # It looks like you may be committing a cherry-pick. # If this is not correct, please remove the file # .git/CHERRY_PICK_HEAD # and try again.
git cherry-pick –continue, –abort,–quit
当使用git cherry-pick发生冲突后,将会出现如下信息:
1 2 3 4 5
$ git cherry-pick 23d9422 error: could not apply 23d9422... [Description]:branch2 commit 3 hint: after resolving the conflicts, mark the corrected paths hint: with'git add <paths>'or'git rm <paths>' hint: and commit theresultwith'git commit'