【发布时间】:2013-12-31 17:01:35
【问题描述】:
我最近在我的 github 存储库中获得了几个损坏的文件。我已经从我的主机中删除了它们,但是我无法用 git 删除它们,因为它们的名字弄乱了。它们在 git status 下是这样显示的
# 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: "\001\006@@x\021@8"
# deleted: "path/to/\001\006@@x\021@8"
#
我试过了
git rm "path/to/\001\006@@x\021@8"
但我得到了错误
fatal: pathspec 'path/to/\001\006@@x\021@8' did not match any files
知道如何从 repo 中正确删除这些文件吗?
【问题讨论】: