Remove all .svn folder from your Linux or Mac

Subversion is a well-spread open-source revision control application. Every copy of source code received from subversion repository has .svn folders, which store metadata. However, if you want to use or distribute source code, these .svn folder are often not necessary. This is a simple example of a unix command, which recursively deletes subversion .svn folders. [css] cd your-svn-directory find . -type d -name ".svn"|xargs rm -rf [/css] or [css] cd your-svn-directory find . -type d -iname ".svn" -exec rm -rf {} \; [/css] Then all of .svn folders have been cleaned.


[do_widget “Facebook Comments Master”]

Post Tagged with , , ,