Vixiom Axioms

June 7, 2007

Remove a project from subversion control

Filed under: svn Alastair @ 9:48 am

About twice a year I need to completely remove a project from svn, I can never find/remember the snippet so I’m posting it on the internets.

# to remove svn from an existing app
find . -name .svn -print0 | xargs -0 rm -rf
Digg! submit Remove a project from subversion control to stumbleupon.com submit Remove a project from subversion control to del.icio.us submit Remove a project from subversion control to reddit.com Like this post? subscribe to the feed.

3 Comments »

  1. Wouldn’t it be easier to just export it?

    $ svn export file:///tmp/repos project

    Comment by Phill Kenoyer — June 7, 2007 @ 11:23 am

  2. I’m not exactly sure why people do it, but I often see piping to xargs when it probably isn’t necessary. Why not just use the -exec functionality of find to do the same thing?

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

    Comment by Aaron Schaefer — June 7, 2007 @ 2:50 pm

  3. @Aaron: Personally, I like doing the piping because before I run the rm, I want to make sure that I am deleting the right stuff first.

    Comment by K. Adam Christensen — June 8, 2007 @ 6:08 am

RSS feed for comments on this post. TrackBack URL

Leave a comment

*
To prove you're a person (not a spam script), type the security word shown in the picture.
Anti-Spam Image

Powered by WordPress