我开始尝试使用 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/