Tuesday, January 12, 2010

unversion svn working copy

how to unversion your svn working copy for/as clean start
http://tortoisesvn.net/node/343

TortoiseSVN has a little known feature built in which can do exactly that: it removes all .svn folders automatically. So where can you find that feature?
Use the "Export" command! But hey, didn't I just tell you that the export command creates a copy of the files in your working copy and doesn't change your original working copy? So how can the export command remove the .svn folders from an existing working copy?
Simple: when you right-click on a working copy and choose "Export..." from the context menu, a folder browse dialog is shown where you can choose the folder where you want the working copy exported to. If you now select the very same path that your working copy is on as the target (i.e., you're exporting the working copy onto itself), TortoiseSVN will remove all .svn folders of that working copy.

Another way to do this is by right-dragging the working copy onto itself. The Explorer doesn't allow dragging items onto themselves in the same window though, so you must either use a second Explorer window or drag onto the tree view as shown in the animation below:

No comments:

Post a Comment