«

»

Mar 14

Getting Rid of Dead Files in a Subversion Working Directory

Quick Tip:
I often find that I delete files before I remember that I should have deleted them using subversion. To help solve that problem I found/created the following command.

svn st |grep "^\!" |cut -c8- | xargs svn rm --force

This takes all the files that are missing from the checked out version of the repository and forces their removal. Enjoy!

Permanent link to this article: http://blog.curioussystem.com/2011/03/getting-rid-of-dead-files-in-a-subversion-working-directory/

Leave a Reply

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

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>