Design-Build-Review

Remove .svn dir from multiple dir’s

July 31, 2008 · Leave a Comment

Here is a pretty useful command for those of you that use subversion for your web app’s version control. You might copy over a directory from another project that has a hidden (by default on a mac) .svn directory. You can use this to remove all .svn directories at the level you are in and levels below your current postition.

find . -name '.svn' -type d -exec rm -rf {} \;

Open up your CLI app / terminal and change directory to the problem directory.

cd /Path/To/TheDirectory/YouJust/Copied

Check that you are in the right place

ls -la

or

pwd

then run the above command. WARNING, it will delete all .svn directories below your current level.

Categories: Programming
Tagged: ,

0 responses so far ↓

  • There are no comments yet...Kick things off by filling out the form below.

Leave a Comment