Remove a project from subversion control

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
This entry was posted in svn. Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

3 Comments

  1. Phill Kenoyer
    Posted June 7, 2007 at 11:23 am | Permalink

    Wouldn’t it be easier to just export it?

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

  2. Posted June 7, 2007 at 2:50 pm | Permalink

    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 {} \;

  3. Posted June 8, 2007 at 6:08 am | Permalink

    @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.

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word