Forum: 

How to either DELETE all SVN folders and files or how to Tklbam-Restore without SVN folders and files.

Landis Arnold's picture

A while back I found I could use SVN to get upgrade versions of Magento into TKL apps.  That was probably a mistake as there are thousands of files in a Magento install and SVN seems to add three more files and a directory for each file.

Any easy ways to get rid of all this?

Any easy ways to "ignore" it during a TKLBam-restore?  (restores w/ SVN take FOREVER)

This page recomends the Command below..  Is this Good to Go?

http://www.hacktrix.com/how-to-delete-svn-folders-from-your-project-on-windows-linux-and-mac

 

	Delete All .svn Folders From Your Project on Linux and Mac

If you are on Linux or Mac, then open terminal and go to your project directory. Then use this command to remove all .svn directories.

find . -type d -name .svn -print0 | xargs -0 rm -rf
Please don’t run this command as root. In fact, you should not run any command as root :)
Landis Arnold's picture

from:  http://www.anyexample.com/linux_bsd/bash/recursively_delete__svn_directories.xml

It is possible to pass these directories directly to rm command, using grave accent quotes (key to left of '1')

 

$ rm -rf `find . -type d -name .svn`

Post new comment