【问题标题】:How to remove quoted deleted files in git repository如何删除 git 存储库中引用的已删除文件
【发布时间】:2013-06-03 12:42:36
【问题描述】:

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

如何使用 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\"

他们不工作

【问题讨论】:

    标签: git quotes rm


    【解决方案1】:

    我有一个方法来解决它,使用: git commit -am “完成” 这样,git会删除所有未暂存的文件并进行提交

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

    【讨论】:

      猜你喜欢
      • 2011-08-25
      • 2019-05-27
      • 1970-01-01
      • 2011-06-04
      • 2011-01-04
      • 2010-11-27
      相关资源
      最近更新 更多