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