Eclipse EGIT - 所有提交, pull , merge ,标记为 merge ,仍在推送我得到 "rejected - non-fast forward",我错过了什么?

标签 eclipse git egit

我开始尝试使用 Git,我确信我遗漏了一些东西,因为我无法进行简单的 merge 和推送

这是我做的(我可能顺序错了,或者顺序错了,如果错了请指正)

  • pull
  • 同步工作区
  • 关于冲突 - 进行了手动 merge ,
  • 然后“标记为已 merge ”(有必要吗?)
  • 其余 - 允许自动 merge
  • 提交我的更改
  • 按下推送(origin-master)
  • 我得到了著名的“rejected - non-fast forward”
  • 做了一个“获取”检查——没有要更新的
  • 做了另一个提交——没有什么可提交的

我错过了什么?

不确定它是否相关,但我在 Eclipse Indigo(SR2,内部版本 20120216-1857)中使用 Windows 7、EGit(1.3.0.201202151440-1)并推送到 GitHub

最佳答案

我想我找到了,而不是“标记为 merge ”,我需要做“添加”

Manual conflict resolution

To resolve a conflict you have to do the following steps:

Navigate to the conflicting resource Edit the content of the conflicting resource Tell EGit that the conflict is resolved with Team -> Add

Commit the conflict resolution with Team > Commit

来自 http://wiki.eclipse.org/EGit/User_Guide#Manual_conflict_resolution

编辑:显然,我应该在玩 EGit 之前学习 git 命令行,那里有相同的概念

关于Eclipse EGIT - 所有提交, pull , merge ,标记为 merge ,仍在推送我得到 "rejected - non-fast forward",我错过了什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10525859/

相关文章:

在Eclipse中从本地导入git项目的Java代码

eclipse - 如何为 Anypoint Studio 3.5.1 安装 Egit

eclipse - 如何导航到 Eclipse 中的最后一个光标位置?

java - SWT Eclipse 组合事件

git - `git reflog` 默认输出的格式字符串是什么?

git - 将 sublime text 3 设置为 git commit 文本编辑器

javascript - sinon:如何模拟从另一个函数返回的函数

java - eclipse 中的 Git Repositories 选项卡是空的

java - 在 Eclipse 中方便快捷地从多个项目运行 Junit-Tests

java - 将逗号分隔的 xml 值转换为 xml 元素并最后截断不需要的数据