Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SVN delete --keep-local

Tags:

I'm working on a project where someone has checked in some folders and files that are not suppose to be in the repository and are suppose to be on our local, I try to delete them by the following command and it gives me this error

svn delete filename --keep-local
svn: invalid option: --keep-local
like image 586
dan.codes Avatar asked Feb 17 '10 13:02

dan.codes


People also ask

How do I delete something from svn?

To remove a file from a Subversion repository, change to the directory with its working copy and run the following command: svn delete file… Similarly, to remove a directory and all files that are in it, type: svn delete directory…

What does svn RM do?

@Nyerguds That's correct, as the svn rm is removing the files from the repository. In the event you wish to remove files from the repo, BUT keep them locally on your machine then you'd use the flag above.

How do I move files in svn without losing history?

If you right-drag the folder and use "SVN move versioned item(s) here", then you keep the history. Even the history of the files within the folder.


2 Answers

Upgrade to the latest version of the SVN client. The version you have installed doesn't have the --keep-local option yet. This feature was added in SVN 1.5.

like image 63
Wim Coenen Avatar answered Sep 17 '22 23:09

Wim Coenen


Please note that delete --keep-local only keeps the deleted files/folders in your local working copy.

When your coworkers perform their next update, the affected files/folders will be deleted in their working copies.

The keep-local option isn't as useful as a lot of people seem to think it is.

like image 36
toenee Avatar answered Sep 17 '22 23:09

toenee