How to delete .svn folders
On the process of importing my svn repository to my git (without history), I wanted to delete all .svn folders from my project without deleting the rest of the content. Here are the steps to do that,
cd /the root folder of your project
find . -type d -name '.svn' -print -exec rm -rf {} \;
- cd --> change directory to the root folder of your project.
- find . --> find in the current directory
- -type d --> file type directory
- -name '.svn' --> file name .svn
- -print --> print what matched up to this point (the .svn dirs)
- -exec rm -rf --> exec the command rm -rf (thing found from find)
- {} --> place holder for out from find
- /; --> / to escape ; and ' is to tell find that the command for exec is done
No comments:
Post a Comment