如何删除“-"来自svn的文件? [英] How to delete "-" file from svn?
问题描述
不小心我在目录中创建了文件-"(只是一个减号)并提交了它.我必须删除它,因为它在其他机器上导致错误:svn:无法将字符串从UTF-8"转换为本机编码:svn: ?\226?\128?\147
Accidentally I have created file "-" (just a minus) in a directory and commited it. I have to delete it because its causing error on other machines: svn: Can't convert string from 'UTF-8' to native encoding: svn: ?\226?\128?\147
我可以使用rm -i *"或pythonos.remove('\xe2\x80\x93')"从本地目录中删除它,但这些方法不适用于svn rm".
I can remove it from local directory using "rm -i *" or with python "os.remove('\xe2\x80\x93')" but those methods do not work with "svn rm".
如何从 svn 存储库中删除此类文件?
How to delete such file from svn repository?
推荐答案
你可以试试 svn rm ./-
它实际上可能不是减号,tho',而是一个相似的字符.
It might not actually be a minus, tho', but a similar-looking character.
这篇关于如何删除“-"来自svn的文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!