How to remove a file from version control without deleting it?

Viewed 87430

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 do I avoid svn also deleting the local file when using svn rm?

4 Answers

for those who use GUI on svn, use below steps to remove a file from svn version control but retain it locally. enter image description here

Related