문제

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

$ 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, e.g.

git stash drop

Source

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top