【发布时间】:2020-06-27 07:56:27
【问题描述】:
我正在尝试使用自动合并策略拉 rebase,
m-hissain-sk01:sc hissain$ git status
On branch master
Your branch and 'origin/master' have diverged,
and have 47 and 3 different commits each, respectively.
(use "git pull" to merge the remote branch into yours)
error: could not apply b5f4d22... Refactored existing source
Resolve all conflicts manually, mark them as resolved with
"git add/rm <conflicted_files>", then run "git rebase --continue".
You can instead skip this commit: run "git rebase --skip".
To abort and get back to the state before "git rebase", run "git rebase --abort".
Could not apply b5f4d22... Refactored existing source
m-hissain-sk01:sc hissain$ git status
interactive rebase in progress; onto 2d4593d
Last command done (1 command done):
pick b5f4d22 Refactored existing source
Next commands to do (2 remaining commands):
pick 4298398 Implemented clean swift version
...
Unmerged paths:
(use "git reset HEAD <file>..." to unstage)
(use "git add/rm <file>..." as appropriate to mark resolution)
added by us: MyProj.xcodeproj/project.xcworkspace/contents.xcworkspacedata
added by us: MyProj.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
added by us: MyProj/Configs/Assets.xcassets/AppIcon.appiconset/Contents.json
...
我们的版本将自动解决预期的冲突。但是运行命令后,我仍然看到等待手动解析的未隐藏代码。
为什么不起作用?
【问题讨论】:
-
这里有几个可能的问题。您应该包含此类命令的实际输出,以及您所期望的(最好是剪切和粘贴的文本,而不是屏幕截图)。
-
好的,我会尽快更新
-
@torek 为了方便起见,我已经更新了命令和输出。您能帮忙找出问题所在吗?
-
有人将问题标记为
This question does not appear to be about programming。为什么这篇文章似乎与编程无关?
标签: git merge rebase conflict git-pull