A slash in front of a file name can be confused with a parameter. The trick is to prefix files with a ./:
$ svn add ./-example.txt That way, Subversion doesn't think the -example.txt are a series of parameters to pass to the svn add command. If there's a space after the dash and before the first "e" in example, you'll need quotes too: $ svn add "./- example.txt" On Mon, Mar 15, 2010 at 5:06 PM, Itamar O <itamar...@gmail.com> wrote: > I might be doing something wrong here, > but I have an unversioned file named "- example.txt" (don't ask why..), > and when I 'svn add "- example.txt"' I get: > svn: invalid option character: > Type 'svn help' for usage. > > Seems that the add command thinks the initial "-" is an option prefix... > This also occurs without the whitespace between "-" and "example.txt" > (then I get "svn: invalid option character: e"). > > Is there a way to work around this? > > Thanks, > Itamar O. > -- David Weintraub qazw...@gmail.com