何らかの理由で、Git は、「コミットされる」ファイルと「コミットのためにステージングされない」ファイルがあると言っていますか? これは意味がありません:
% git status
# On branch master
# Changes to be committed:
# (use "git reset HEAD <file>..." to unstage)
#
# modified: Dir1/Dir2/filename.cpp
#
# 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)
#
# modified: Dir1/Dir2/filename.cpp
Dir1
、Dir2
そしてfilename.cpp
間違いなくすべて同じファイルです。コミットされる変更として表示されるようにするには、再度追加するfilename.cpp
必要がありました(最初にリポジトリにあった後)。問題を引き起こした可能性のある唯一のことは、私が を隠してから?pull --rebase
をポップしたことでした。、またはどこにもリストされておらず、パターンはこのファイルをキャッチすることを示唆していませんか?stash
.gitignore
Dir1
Dir2
filename.cpp