Wednesday, July 27, 2011

SVN help: Easy way to delete .svn folders

If you need to delete .svn in folders, here is a simple Linux command
rm -rf `find . -name .svn`

This can come very useful if you have made a copy/backup of the folder.
Another use is if the folder is copied from one project to another project. In which case, you will not be able to add the folder into SVN as it will tell you that this directory already exist under svn. It is best if you delete all the .svn and then do a 'svn add'

No comments:

Post a Comment