If you want to remove all the .svn folders from a SVN repository to "uninstall" SVN from it, or clean it in preparation for deployment or making a tarball you can use the following simple line of bash script. This has been test and verified to work in Mac OS X Snow Leopard:
rm -rf `find . -type d -name .svn`
If you enjoy reading Experiment Garden, then you should subscribe by clicking here.
1 comment so far. What are your thoughts?
Anonymous
said...
Try this:
find . -type d -name .svn -exec rm -rf {} \;
May save some mistakenly removed directory :)
Nick
You should try Duck Duck Go, the better search engine that protects your privacy.
1 comment so far. What are your thoughts?
Try this:
find . -type d -name .svn -exec rm -rf {} \;
May save some mistakenly removed directory :)
Nick