gpt4 book ai didi

git rebase merge 冲突无法继续

转载 作者:IT王子 更新时间:2023-10-29 01:23:21 25 4
gpt4 key购买 nike

我正在尝试 rebase “dev”以 catch “master”分支。

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

有什么想法吗?

最佳答案

我见过 rebase 卡住的几种情况。一种是如果更改变为空(提交具有之前已经在 rebase 中进行的更改),在这种情况下,您可能必须使用 git rebase --skip

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

关于git rebase merge 冲突无法继续,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14410421/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com