Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Remove file from SVN repository without deleting local copy

People also ask

How do I delete a file from SVN repository?

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?

Name. svn delete (del, remove, rm) — Delete an item from a working copy or the repository.

How do I edit a SVN repository?

Click on the new working copy and right click to select the repository browser (TortoiseSVN -> Repo-browser) Right click the file of choice in the repository browser and select "Update item to revision"


svn delete --keep-local the_file

Deleting files and folders

If you want to delete an item from the repository, but keep it locally as an unversioned file/folder, use Extended Context Menu → Delete (keep local). You have to hold the Shift key while right clicking on the item in the explorer list pane (right pane) in order to see this in the extended context menu.

Delete completely:
right mouse click → Menu → Delete

Delete & Keep local:
Shift + right mouse click → Menu → Delete


In TortoiseSVN, you can also Shift + right-click to get a menu that includes "Delete (keep local)".