unix command to delete the .svn folders
This post was written 5 years ago.
Tue, 17 Oct 2006
This command will delete all those pesky .svn directories that have been left by subversion:-
(obviously you will want to keep the .svn folders if you are still using subversion!)
find ./ -name ".svn" | xargs rm -Rf (obviously you will want to keep the .svn folders if you are still using subversion!)
This post was written 5 years ago, which in internet time is really, really old. This means that what is written above, and the links contained within, may now be obsolete, inaccurate or wildly out of context, so please bear that in mind :)
Comments
find . -name ".svn" -print0 | xargs -0 rm -Rf
(those are zeros, not ohs, if your font shows them ambigiously)
This is slightly safer as is used a null byte () as the delimiter between entries, rather than a space. This means that if I happen to have a folder called "foo" and one with spaces in called "foo bar", you might find a .svn dir present in "foo bar" will cause the whole of the "foo" directory to be deleted.
-Matt
Matt 2006-10-17 15:16:24
Craig 2007-01-09 14:57:16
Braden 2007-03-06 22:18:23
find . -name "._*" -print0 | xargs -0 rm -Rf
handy to run before uploading a project via ftp.
Tim 2009-02-28 04:53:01
Tom 2010-03-06 10:54:19