git - 看不到 git filter-branch 提示的未暂存更改

标签 git git-filter-branch

在一个新的 repo 克隆上,git filter-branch 提示我有未暂存的更改,例如

$ git filter-branch --subdirectory-filter plugins/hypervisors/hyperv -- --all 
Cannot rewrite branches: You have unstaged changes.

但是,这些 git status 表示没有任何变化:

$ git status
# On branch master
nothing to commit (working directory clean)

我在哪里可以找到更改内容?

最佳答案

通过删除存储来解决,例如

git stash drop

Source

知道对存储的更改来自何处会很有趣。

关于git - 看不到 git filter-branch 提示的未暂存更改,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18469248/

相关文章:

git - 来自多个 Git 存储库的 Visual Studio 解决方案

windows - Git:查找大包文件中的最大文件

git - 将 git 存储库中的一组文件拆分到它们自己的存储库中,保留相关历史记录

带有 --index-filter : strange bash error ( ! 的 git-filter-branch:找不到事件)

git - 如何迁移具有历史记录的 Git TFS Azure 存储库

git - 将 stash 应用到不同的分支

git 不推送文件夹中的所有文件

混帐: "Corrupt loose object"

git - 无效的作者/提交者行 - 电子邮件前缺少空格

git - 在工作树层次结构中向上移动 .git 文件夹