Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to delete "-" file from svn?

Tags:

shell

svn

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

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".

How to delete such file from svn repository?

like image 505
askonecki Avatar asked May 28 '10 12:05

askonecki


Video Answer


1 Answers

Usually, you need to terminate the list of command line options using a -- marker.

Try something like svn rm -- -.

Same if you want to remove the directory from the file system: rm -r -- -.

like image 88
aioobe Avatar answered Sep 28 '22 07:09

aioobe