Rhyous

March 30, 2010

My source uses subversion and has a .svn directory in each subdirectory, how do I remove those .svn directories in Windows?

Filed under: Development — J. Abram barneck @ 6:40 am
Tags: ,

My source uses subversion and has a .svn directory in each subdirectory, how do I remove those .svn directories?

Method 1 – Exporting with TortoiseSVN
Well, if you are in windows with Tortoise SVN installed, you can right-click on the folder or inside the folder in white space and choose TortoiseSVN | Export. This allows you to select a folder and export your code without the .svn folders.

Method 2 – Scripted deletion
However, if you don’t have a Tortoise SVN Client but you have all those .svn folders, you can easily delete them by a simple one line command from the windows command prompt:

c:\path\to\source> for /F “tokens=*” %A in (‘dir /S /B /AD *.svn’) DO rmdir /S /Q “%A”
Advertisements

Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Blog at WordPress.com.

%d bloggers like this: