【发布时间】:2014-08-29 14:44:57
【问题描述】:
在我们的项目中,我们使用 git,我们在新分支中发布的每个功能,在 codereview 之后,CTO 将其重新定位到开发分支中。在我完成我的票后,首席技术官说他不能重新调整我的更改,因为发生了冲突。我在本地机器上复制了它:
git clone ...
cd project1
git checkout my-branch
git rebase develop
...
Auto-merging admin/contest.html
CONFLICT (content): Merge conflict in admin/contest.html
Failed to merge in the changes.
Patch failed at 0019 contest: admin, dashboard, /contest
When you have resolved this problem run "git rebase --continue".
If you would prefer to skip this patch, instead run "git rebase --skip".
To check out the original branch and stop rebasing run "git rebase --abort".
好的,我解决了这个冲突,而不是添加了这个文件,但我无法继续 rebase 或推送一些东西。解决此类冲突的最佳方法是什么?
更新
在我做了 git rebase --continue 之后,我得到了:
Applying: $0 in admin/contest dropdown
No changes - did you forget to use 'git add'?
If there is nothing left to stage, chances are that something else
already introduced the same changes; you might want to skip this patch.
When you have resolved this problem run "git rebase --continue".
If you would prefer to skip this patch, instead run "git rebase --skip".
To check out the original branch and stop rebasing run "git rebase --abort".
【问题讨论】:
-
运行
git rebase --continue时出现什么问题? -
@RohitJain,更新了问题。