Git rebase merge冲突无法继续 [英] Git rebase merge conflict cannot continue

查看:2579
本文介绍了Git rebase merge冲突无法继续的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图重新设置'开发者'以赶上'主'分支。

  $ git checkout dev 
$ git rebase master
首先,回头重播您的作品...
应用:更正了SVN转换后的编译问题。
使用索引信息重建基本树...
M src / com / ....
:125:尾随空格。
/ **
:126:尾随空格。
*
:127:尾随空格。
* /
:128:尾随空格。
package com ....
:129:尾随空格。

警告:压扁117空格错误
警告:122行添加空格错误。
回退到补丁库和3路合并...
自动合并src / com / ....
CONFLICT(内容):合并src / com /中的冲突。 。
未能在更改中合并。
补丁在0001失败更正了SVN转换后产生的编译问题。

当你解决这个问题时,运行git rebase --continue。
如果您希望跳过此修补程序,请运行git rebase --skip。
检出原始分支并停止重新分配运行git rebase --abort。

$ vi src / com / ..... {在一个文件中解决合并问题}
$ git add -A。
$ git rebase --continue
src / com / ....:需要合并
您必须编辑所有合并冲突,然后
将它们标记为已解决使用git add
$ vi src / com .... {verified,no>>>或<<左,没有合并标记}
$ git rebase --continue
应用:更正了SVN转换后产生的编译问题。
没有变化 - 你忘了使用'git add'吗?
如果没有剩下任何东西,那么有可能是其他
已经引入了相同的变化;你可能想跳过这个补丁。

当你解决这个问题时,运行git rebase --continue。
如果您希望跳过此修补程序,请运行git rebase --skip。
检出原始分支并停止重新分配运行git rebase --abort。

有什么想法?

解决方案

有几次我看到 rebase 被卡住了。一种情况是,如果更改变为空(一个提交已经在rebase中进行过更改),在这种情况下,您可能需要使用 git rebase --skip 。 p>

这很容易分辨。如果您执行 git status ,它应该不会显示更改。如果是这样,就跳过它。如果不是这种情况,请发布 git status 的副本,我可以尝试进一步帮助。


I'm trying to rebase 'dev' to catch up to 'master' branch.

$ git checkout dev 
$ git rebase master 
First, rewinding head to replay your work on top of it...
Applying: Corrected compilation problems that came from conversion from SVN.
Using index info to reconstruct a base tree...
M       src/com/....
<stdin>:125: trailing whitespace.
/**
<stdin>:126: trailing whitespace.
 *
<stdin>:127: trailing whitespace.
 */
<stdin>:128: trailing whitespace.
package com....
<stdin>:129: trailing whitespace.

warning: squelched 117 whitespace errors
warning: 122 lines add whitespace errors.
Falling back to patching base and 3-way merge...
Auto-merging src/com/....
CONFLICT (content): Merge conflict in src/com/...
Failed to merge in the changes.
Patch failed at 0001 Corrected compilation problems that came from conversion from SVN.

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".

$ vi src/com/.....   { fixed the merge issue on one file } 
$ git add -A . 
$ git rebase --continue 
src/com/....: needs merge
You must edit all merge conflicts and then
mark them as resolved using git add
$ vi src/com....      { verified, no >>> or <<< left, no merge markers } 
$ git rebase --continue 
Applying: Corrected compilation problems that came from conversion from SVN.
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".

Any ideas?

解决方案

There are a couple situations where I've seen rebase get stuck. One is if the changes become null (a commit has changes that were already made previously in the rebase) in which case you may have to use git rebase --skip.

It's pretty easy to tell. If you do git status it should show no changes. If so just skip it. If that isn't the case please post a copy of git status and I can try to help further.

这篇关于Git rebase merge冲突无法继续的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆