如何删除git存储库中引用的已删除文件

如何删除git存储库中引用的已删除文件,git,quotes,rm,Git,Quotes,Rm,当我使用git状态时,它显示: # 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: "project/Resources/font-365

当我使用git状态时,它显示:

# 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:    "project/Resources/font-365\345\211\257\346\234\254.png"

它们不起作用

我找到了一种解决方法,使用: git提交-我完成了 这样,git将删除所有未暂存的文件并进行提交

但我认为这不是一种优雅的方式,有人知道如何使用git-rm删除它吗

git rm project/Resources/font-365\\345\\211\\257\\346\\234\\254.png
git rm \"project/Resources/font-365\\345\\211\\257\\346\\234\\254.png\"