Delete the Dot SVN Subversion Directories from a Working Copy

Written by James McDonald

April 1, 2011

I use subversion to keep track of configuration file changes in the /etc directory on some of my Linux boxes.

However I have found occassionally some of the scripts that run against files in /etc/* descend into the .svn directory and try to execute the svn version control files.

To remove subversion from the /etc/* tree after it’s been installed I did the following using find and xargs.

# change to the /etc directory
cd /etc
# starting in the current directory (/etc)
# find all directories with the name .svn
# and remove them
find . -type d -name \.svn | xargs rm -rf {}\;

1 Comment

  1. Gabz

    You can also use the svn export command on a working copy to extract just he files to a folder

    Reply

Submit a Comment

Your email address will not be published. Required fields are marked *

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

The reCAPTCHA verification period has expired. Please reload the page.

You May Also Like…

Clear HSTS Settings in CHrome

Open chrome://net-internals/#hsts enter the domain in the query field and click Query to confirm it has HSTS settings...

Ubuntu on Hyper-v

It boils town to installing linux-azure # as root or sudo apt-get update apt-get install linux-azure...