Remove file from SVN repository without deleting local copy

人走茶凉 提交于 2019-11-27 16:45:23
svn delete --keep-local the_file
crashmstr

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

harpo

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

Avram

Rename your file, commit the changes including the "deleted" file, and don't include the new (renamed) file.

Rename your file back.

pavan

When you want to remove one xxx.java file from SVN:

  1. Go to workspace path where the file is located.
  2. Delete that file from the folder (xxx.java)
  3. Right click and commit, then a window will open.
  4. Select the file you deleted (xxx.java) from the folder, and again right click and delete.. it will remove the file from SVN.
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!