私は削除したい2番目のファイルに対してこのコマンドを実行しています(最初は.gitignoreにあるJetBrainsの.ideaフォルダファイルでした)。こと: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が参照している、と私はこれをどのように修正すればよいものを「unstaged」ファイルを知っていますか?
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'は何かを返しますか? –