How do I recursively delete all .svn directories, starting with the directory I am in?
Asked
Active
Viewed 4,071 times
3 Answers
12
Keep in mind that svn provides the "export" command that provides you with a copy of your working tree, but without all the .svn directories sprinkled in. This could be what you want.
$ svn export /tmp/copy_of_my_tree
Ned Batchelder
- 1,296
9
If you're working in Linux (or equivalent), you can just do the following:
find . -name .svn -exec rm -rf {} \;
Oliver Charlesworth
- 1,092
7
In any modern UN*X-like system (Linux, Mac OS X, FreeBSD):
find . -type d -name '.svn' -exec rm -rf {} \;
find:
- in the current directory
- directories
- with name
.svn - and when found, run
rm -rfon each