[英]How to remove quoted deleted files in git repository
當我使用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 commit -am“ done”這樣,git刪除所有未暫存的文件並執行提交
但是我認為這不是一種優雅的方法,有人知道如何使用“ git rm”將其刪除嗎?
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.