无法变基:合并后,以下未跟踪的工作树文件将被覆盖

时间:2020-02-29 00:56:12

标签: git

我正在尝试重新建立分支并压缩大多数提交。这样做时,出现以下错误:

error: The following untracked working tree files would be overwritten by merge:
src/components/rtbDsp/RtbDspHeader.jsx
src/components/rtbDsp/RtbDspManager.jsx
Please move or remove them before you merge.
Aborting
hint: Could not execute the todo command
hint: 
hint:     squash cbb99a2a11499fb58a14241783d0d8fb1942a130 AM-485-dsps-edit fix case names
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 cbb99a2... AM-485-dsps-edit fix case names

我不知所措。我试着删除文件,但是它只是在它尝试重新设置基准的下一次提交中发生。我尝试删除提交,但遇到相同的错误。

发生了什么事,这些文件从“ rtbDspManager”重命名为RtbDspManager。由于某些原因,这些文件被标记为未跟踪,但不再被跟踪。

0 个答案:

没有答案