I have a folder, c:\websites\test
, and it contains folders and files that were checked out from a repository that no longer exists. How do I get Subversion to stop tracking that folder and any of the subfolders and files?
I know I could simply delete the .svn
folder, but there are a lot of sub-folders in many layers.
On Windows, you can add a quicklink for that to your explorer right click menu. Just start this registry script:
This will add an item called "Delete SVN Folders" to your right click menu. This will delete all .svn folders in this folder and all subfolders.
Source (German): http://www.sjmp.de/software/alle-svn-ordner-und-dateien-loeschen/
For those using NetBeans with SVN, there is an option 'Subversion > Export'.
On Linux the command is:
You can use "svn export" for creating a copy of that folder without svn data, or you can add that folder to ignore list
Also, if you are using TortoiseSVN, just export to the current working copy location and it will remove the .svn folders and files.
http://tortoisesvn.net/docs/release/TortoiseSVN_en/tsvn-dug-export.html#tsvn-dug-export-unversion
Updated Answer for Subversion 1.7:
In Subversion 1.7 the working copy has been revised extensively. There is only one .svn folder, located in the base of the working copy. If you are using 1.7, then just deleting the .svn folder and its contents is an easy solution (regardless of using TortoiseSVN or command line tools).
There's also a nice little open source tool called SVN Cleaner which adds three options to the Windows Explorer Context Menu: