Remove All .svn Directories

 / Published in: SVN

Recursively removes all .svn directories within a directory

  1. find . -name .svn -print0 | xargs -0 rm -rf

Report this snippet  


RSS Icon Subscribe to comments
Posted By: Roshambo on July 26, 2006

Really useful.

Posted By: mountainash on January 5, 2007

Don't forget you can use the svn export command to make a copy of the repos without the .svn folders.

svn export repos/ destination/

Posted By: Mithun on September 6, 2008

Thank you

Posted By: tuxpr0 on December 7, 2008

Usefull as hell.

Posted By: noah on January 9, 2009

Thanks for this, it's very helpful.

Also @mountainash thanks for mentioning svn export

You need to login to post a comment.