我试过谷歌搜索答案,但我没有发现任何类似的。问题是,Git突然开始为我试图删除的任何文件显示“No such file or directory”。
$ git rm file_to_remove
rm 'file_to_remove'
$ git commit -m "temp"
Can't open file_to_remove: No such file or directory.
Can't open file_to_remove: No such file or directory.
tail: file_to_remove: No such file or directory
fatal: pathspec 'file_to_remove' did not match any files
存储库仅限本地存储,即它尚未在任何地方发布。