git status
のときは、私のgit repos(githubで管理されているhttps://github.com/quchunguang/test)のファイルは常に "deleted"状態のままです。何もできない "削除された"ファイルを永久に残すことの問題
私はgit add
です。git rm
できません。それを削除するには他のことをしないでください。 git fsck --full
を試しましたが、エラーは検出されませんでした。 リポジトリ全体を削除し、git clone
をgithubから削除しましたが、まだそこに問題があります。
これは私のWindows 10 64ビットシステムで、git 64ビット(gitバージョン2.8.0.windows.1)で発生しました。
$ git status
On branch master
Your branch is ahead of 'origin/master' by 1 commit.
(use "git push" to publish your local commits)
Changes not staged for commit:
(use "git add/rm <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)
deleted: run_myscript.py
no changes added to commit (use "git add" and/or "git commit -a")
おそらく、「何か」が「run_myscript.py」を削除しました。 'git status'を実行してもファイルはそこにありますか?助けを得るためには、 'git clone'から' git status'までの完全なシナリオなど、より多くの情報を提供する必要があります。 –