14

Possible Duplicate:
How do you remove Subversion control for a folder?

Is there such a tool?

I'm being bothered by this issue now again...

Community
  • 1
  • 1
mysql_go
  • 2,269
  • 4
  • 20
  • 20

4 Answers4

20
find . -name .svn -exec rm -rf {} \;

Just noticed windows tag, so that probably won't help unless you use cygwin.

stakx - no longer contributing
  • 83,039
  • 20
  • 168
  • 268
river
  • 1,508
  • 1
  • 12
  • 17
7

List them:

find . -type f -name .svn

Delete them

find . -type f -name .svn -delete

And if they're actually directories, not files

find . -type d -name .svn -exec rm -rf {} \;
Erik
  • 88,732
  • 13
  • 198
  • 189
5

now here it is. Go to your project root directory and use this terminal command:

find . -name ".svn" -type d -exec rm -rf {} \;
Deepukjayan
  • 3,525
  • 1
  • 20
  • 31
3

This is built-in to svn using svn export. This can operate in two modes, one which downloads and places a fresh copy of the server content in a new local folder, and the other which takes an existing local folder and creates a new local folder.

Example: svn export c:\MyCheckout c:\MyCheckout2

After executing the above, c:\MyCheckout2 will contain your checkout but without any .svn folders.

You can execute svn help export to see more instructions.

DuckMaestro
  • 15,232
  • 11
  • 67
  • 85