git - "cannot pull into a repository with state: merging_resolved"

标签 git merge egit

经过一些 pull 、 merge 和冲突解决后,我的 GIT 卡住了。这是我在主项目上尝试做的(使用 EGit):

  • “pull ”返回“无法 pull 入状态为:merging_resolved 的存储库”
  • “从上游获取”返回“没有从 GeniusWebSocket 获取的引用 - 来源 - 一切都是最新的。”
  • “merge ”在菜单中是灰色的。
  • “提交”返回“不可能提交/修改...”。
  • “向上游推送”返回“已拒绝 - 非快进”。
  • “添加到索引”什么都不做。

在项目标题附近,我看到 [Merged master up-arrow 1 down-arrow 1]。

$ git status
# On branch master
# Your branch and 'origin/master' have diverged,
# and have 1 and 1 different commit each, respectively.
#
nothing to commit (working directory clean)

我该如何继续?

最佳答案

由于您已完成 merge ,并且没有任何待处理的更改,您可以尝试 git reset --hard,看看问题是否仍然存在。 (参见 EGit reset your current HEAD)


Ankit Marothi建议 in the comments :

I resolved it by resetting it from egit, using Team->Reset and using mixed reset as the option.

关于git - "cannot pull into a repository with state: merging_resolved",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16271906/

相关文章:

git - 如何压缩中间有 merge 提交的提交?

当使用从其他分支添加的文件推送提交时,Git 提交总是被拒绝

git repo 提供了来自 WSL 的矛盾信息而不是标准 Windows

c# - SQL DB 迁移建议 --- 更新数据库模型...我可以复制旧记录吗

c - 合并排序 - 错误输出

eclipse - Push 不允许使用 git-receive-pack

eclipse - 在使用存储库时,我是否正确使用了 EGit 和 Eclipse?

git - 将一个github项目 pull 入另一个github项目

ios - 忽略库 .xcodeproj 文件更改

java - JGit/EGit 加载翻译包失败 zh_CN