Git cherry-pick失败

时间:2017-07-13 09:01:30

标签: git version-control cherry-pick

我有一个本地全新的分支机构,我想挑选一些提交。一些选择运行良好,但下一个发生了冲突:

>git cherry-pick 676b371
error: could not apply 676b371... fixed connection resolution.
hint: after resolving the conflicts, mark the corrected paths
hint: with 'git add <paths>' or 'git rm <paths>'
hint: and commit the result with 'git commit'

所以我试着看看出了什么问题并得到了这个:

>git status
On branch MyBranch
fatal: Could not open file .git/rebase-merge/done for reading: No such file or directory

这是什么意思?我的回购破了吗?我该如何解决这个问题?

更新 按照建议运行:

>git cherry-pick --abort

>git status
On branch MyBranch
fatal: Could not open file .git/rebase-merge/done for reading: No such file or directory

UPDATE2: 这是.git / rebase-merge文件夹的内容:

git-rebase-todo
git-rebase-todo.backup
head-name
interactive
onto
orig-head
quiet

P.S。

git version 2.10.1.windows.1

1 个答案:

答案 0 :(得分:1)

找到答案here

git rebase --abort

这就是诀窍。