delete .svn recursively

I check out a project, I copy it and I am going to delete .svn. In every directory, I have .svn file. May I use one command to delete all of them recursively (In sub directory also).

JianJunShenAsked:
Who is Participating?
 
JianJunShenAuthor Commented:
sorry, I am using windows.
0
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
CEHJCommented:
In what OS?
0
 
m_walkerConnect With a Mentor Commented:
Using windows explorer, search for all *.svn files starting at your top folder.

Then Select and delete all the files that the searh finds.

or from dos, you can try

del /s *.svn
0
 
Sathish David Kumar NArchitectCommented:
if you delete .svn then you cant  check in the code....

that  wil not effect your code while your import to any Workspeace in  IDE ?

Then may i know the reason why your deleting ??


Ok do like this go t that particular folder press  windows + F3 then search .svn file it will search that particular folder only ! so it will show all .svn file then ctrl + A  then delete !  
0
 
CEHJCommented:
Why do you want to delete them?
0
 
JianJunShenAuthor Commented:
I already found a script by myself. tomorrow I will post them.

The reason why I want to delete .svn.

The reason might sounds strange, I make a application, but I could not do branch or tag for some particular reason. But I could check in new project files. Since it is not a big project, it has a couple of branch only. So I copy the source code directory,  rename and check in again as another project. So I need to delete this old .svn. That's it.  
0
 
objectsConnect With a Mentor Commented:
you don't need a script, just use file search to find files name .svn and then delete them

0
 
Sathish David Kumar NConnect With a Mentor ArchitectCommented:
Ok go ur  project folder right click)

ToritiseSVN   ------> export ----- > omit externals (check boxs select ) place to export then you can see that exported file will not have .SVN !
0
 
Sathish David Kumar NConnect With a Mentor ArchitectCommented:
if you not found that in menu means go to

ToritiseSVN  ------>setting--->general----> context menu ---->select exported check box then cilck ok now ur menu have export option !!
0
 
Sathish David Kumar NConnect With a Mentor ArchitectCommented:
Or while ur check out check click omit externals check box !
0
 
JianJunShenAuthor Commented:
FOR /F "tokens=*" %%G IN ('DIR /B /AD /S *.svn*') DO RMDIR /S /Q "%%G"


Make above as a bat file, run it. Then ok.

Anyway, there are so many good answer/alternatives here also.
0
All Courses

From novice to tech pro — start learning today.