【发布时间】:2012-09-06 00:55:43
【问题描述】:
昨天我在我的主分支中挑选了两个提交,其中一个导致了合并冲突,我解决了它们,提交并将它们推送到原点。今天,当我收到以下错误时,我试图从服务器中提取:
$ git pull
fatal: You have not concluded your cherry-pick (CHERRY_PICK_HEAD exists).
Please, commit your changes before you can merge.
$
Git 状态读取:
$ git status
# On branch main
# Your branch is behind 'origin/main' by 2 commits, and can be fast-forwarded.
#
$
我尝试了以下方法无济于事:
$ git cherry-pick --continue
usage: git cherry-pick [options] <commit-ish>
$
知道如何解决这个问题吗?提前致谢!
【问题讨论】:
-
你用的是什么 git 版本?
git cherry-pick --continue已于2011年8月引入(github.com/git/git/commit/…,git1.7.7+) -
@VonC,您应该将此作为答案提交。现在是正确的。
-
@cjbarth 我已将其发布为下面的答案。
-
我已经用西班牙语 here 提出了这个问题,之前没有读过这个问题。
标签: git version-control cherry-pick git-cherry-pick