【发布时间】:2022-01-03 02:16:33
【问题描述】:
当我想针对我的feature 分支重新设置develop 分支时,我遇到了合并冲突。我使用 IntelliJ Idea 来执行单个 Git 命令。假设我有 3 个推送的提交,我想使用 --interactive 模式压缩和变基。
我选择所有三个提交,我选择squash,重新措辞,然后点击Rebase。
该过程失败,并且出现在 Git 面板中 Changes 和差异面板上的 Excel 文件表示内容相同。我只能中止或重试变基,但继续没有意义,因为更改总是阻止我继续。
这是控制台输出:
12:50:42.385: [myapplication] git -c credential.helper= -c core.quotepath=false -c log.showSignature=false -c core.commentChar= rebase --interactive develop
Rebasing (1/2)
error: Your local changes to the following files would be overwritten by merge:
excel-file.xlsx
Please commit your changes or stash them before you merge.
Aborting
hint: Could not execute the todo command
hint:
hint: fixup 37d1fc57dff9c7e9a312c88cf78c176cb71dbb47 CommitMessageIsHere
hint:
hint: It has been rescheduled; To edit the command before continuing, please
hint: edit the todo list first:
hint:
hint: git rebase --edit-todo
hint: git rebase --continue
Could not apply 37d1fc5... CommitMessageIsHere
有什么技巧可以克服这个障碍吗?是否有可能以某种方式强制忽略并跳过此类合并冲突?
【问题讨论】:
-
当
git尝试运行git rebase时,您是否看到它的输出?更具体地说:它因为冲突而停止,这是什么冲突? -
@LeGEC:我已经添加了控制台输出。
标签: excel git intellij-idea binaryfiles rebase