简体   繁体   中英

Cannot see the unstaged changes git filter-branch is complaining about

On a new repo clone, git filter-branch complains that I have unstaged changes, eg

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

However, these git status says that there are no changes:

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

Where do I look to find out what the changes are?

Resolved by wiping the stash, eg

git stash drop

Source

Would be interesting to know where the changes to the stash came from.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM