git - Git 在 rebase 上将跟踪的文件列为未跟踪的。我该如何执行这样的变基?
问题描述
当我尝试git rebase branch1 branch2
, 或之后git checkout branch2
, 时git pull origin branch1 --rebase
,我收到以下消息:
error: Your local changes to the following files would be overwritten by checkout:
<list of files here>
Aborting
fatal: Could not detach HEAD
First, rewinding head to replay your work on top of it...
但是,当我运行 git status 时,什么也没有出现。如果我尝试签出不同的分支,它会起作用。如果我删除这些文件,它们会在 git 状态中显示为已删除,因此 rebase 仍然失败。当我存储更改时,情况与最初描述的相同。
我试过跑步git clean -fd
。重命名索引文件,以便创建一个新的。我检查了文件在.gitignore file
.
问题可能出在哪里?
解决方案
推荐阅读
- sql - 您可以在 BigQuery 中使用逻辑运算符根据当前日期选择不同的日期吗?
- r - R在关键字之后提取特定单词
- flutter - 如何区分颤振中的复选框列表
- blogger - 有什么方法可以使用 www.blogname,blogspot.com 使我的 blogspot 页面可访问
- gatsby - 如何将用于生产的图像从资产复制到公共/资产
- python - 如何丰富与其他数据字段的 viur 关系
- voice - 谷歌语音助手从网络上拾取音频
- dynamics-crm - D365 中实体的托管组件是否存在在某些系统更新后发生更改的风险?
- python - 处理 csv 文件 - 这个简单的代码有什么问题?
- sql - 喜欢和计数使 sql server 处理器 100%