views:

45

answers:

1

If I run svn rm file, the file is removed from the local working copy.

What I do now is:

$ cp file file2
$ svn rm file
$ svn ci
$ mv file2 file

How avoid svn to also delete the local file and let it just remove the file from the repository?

+7  A: 

You want the --keep-local command-line option. This removes the file from version control without removing it from your filesystem.

$ svn rm --keep-local my_important_file

Boom.

Andres Jaan Tack
Bingo, I think that's what he meant +1, you were faster :-)
jdehaan
+1 for the Boom!
SuperJames