无法看到未暂存的更改,git filter-branch报错

3
在新的代码库克隆时,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)

我应该去哪里找到变更内容?


如果这是一个开源工具,为什么不提供存储库的链接,以便我们可以测试它呢? - mart1n
据我所知,问题出在我的本地系统上。然而,该仓库位于Github上(lafferty/cshv3)。 - Donal Lafferty
1
它对我起作用了:http://pastebin.com/p7e6Eun9。所以问题确实出在你的系统上。请再试一次整个操作。 - mart1n
1个回答

2

通过清除存储解决,例如:

git stash drop

来源

想知道stash的变更是从哪里来的,这很有趣。


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接