How do you remove Subversion control for a folder?
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.
Solution 1:
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).
Solution 2:
On Linux, this will work:
find . -iname ".svn" -print0 | xargs -0 rm -r
Solution 3:
Try svn export.
You should be able to do something like this:
svn export /path/to/old/working/copy /path/to/plain/code
And then just delete the old working copy.
TortoiseSVN also has an export feature, which behaves the same way.