我面临着不确定如何解决的问题。
我对分支机构的master进行了基准调整:
git rebase master
并得到以下错误
First, rewinding head to replay your work on top of it...
Applying: checkstyled.
Using index info to reconstruct a base tree...
Falling back to patching base and 3-way merge...
Auto-merging AssetsLoader.java
CONFLICT (content): Merge conflict in AssetsLoader.java
Failed to merge in the changes.
Patch failed at 0001 checkstyled.
因此,我去了我最喜欢的编辑器,修复了1行冲突,保存了文件并执行git status并获得以下输出:
# Not currently on any branch.
# Changes to be committed:
# (use "git reset HEAD <file>..." to unstage)
#
# modified: PassengerContactHandler.java
#
# Unmerged paths:
# (use "git reset HEAD <file>..." to unstage)
# (use "git add/rm <file>..." as appropriate to mark resolution)
#
# both modified: AssetsLoader.java
#
我做了一个git add AssetsLoader.java和一个git status并得到以下内容:
# Not currently on any branch.
# Changes to be committed:
# (use "git reset HEAD <file>..." to unstage)
#
# modified: AssetsLoader.java
# modified: PassengerContactHandler.java
#
当我做git rebase-继续我得到:
git rebase --continue
You must edit all merge conflicts and then
mark them as resolved using git add
我知道我可以跳过补丁并继续进行变基,但是我不确定PassengerContactHandler.java中的更改是否将变基到我的分支中。
所以我不确定,该如何进行?
编辑:可能是已解决冲突的文件与原始版本完全一样?
非常感谢,卢卡斯
编辑,它再次发生在我身上:
只是又发生在我身上
(307ac0d...)|REBASE)$ git status
# Not currently on any branch.
# Changes to be committed:
# (use "git reset HEAD <file>..." to unstage)
#
# modified: assets/world/level1/Level-1.xml
# modified: George.java
# modified: DefaultPassenger.java
#
# Untracked files:
# (use "git add <file>..." to include in what will be committed)
#
# mb-art/originalAssets/27dec/
((307ac0d ...)| REBASE)$ git rebase-继续
You must edit all merge conflicts and then
mark them as resolved using git add
git --version
git version 1.7.1
git-rebase
如果没有冲突,则永远不要报告存在未解决的冲突。如果您可以在更简单的测试案例中设法重现该问题,则调试起来会容易得多,但是,如果您git status
报告这样做时没有冲突git rebase --continue
,并且您的Git版本是最新的,则可以尝试向Git开发人员发送电子邮件git@vger.kernel.org上的邮件列表,其中包含尽可能多的诊断信息。
git status
,对不对?下面没有缺失的部分吗?