我正在對第二個要刪除的文件執行此命令(第一個是JetBrains的.idea文件夾文件,它現在位於.gitignore中),但我不是能:git說我已經取消了更改但我沒有顯示
git filter-branch --force --index-filter 'git rm --cached --ignore-unmatch gf5/console/basic.php' --prune-empty --tag-name-filter cat -- --all
Cannot rewrite branches: You have unstaged changes.
所以我怎麼知道什麼是「未分級」文件Git是指當它不一一列舉了,我該如何解決這個問題?
PS這個問題不存在,我沒有任何問題,也沒有做過任何存儲這個回購有史以來。
注:我做了git status
和接受這一點:
Changes to be committed:
(use "git reset HEAD <file>..." to unstage)
modified: gf5/console/basic.php
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)
//(and a whole long list of files)
'git status'是否返回任何內容? –