[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Best way to "un-version control" a file?

From: Ryan Schmidt <subversion-2010b_at_ryandesign.com>
Date: Wed, 22 Sep 2010 21:28:40 -0500

On Sep 22, 2010, at 20:21, Chris Albertson wrote:

> But, I did not think until now that I should have excluded files such
> as core files and logs and autoconf's cache from version controls. I
> now know how to a global ignore and a ignore foe one directory but how
> to remove these files from version control once they are already
> there. Is "svn rm" the best why? But that will remove them from
> the working directory too. I don't want that.

To unversion file "foo":

cp foo foo.tmp
svn rm foo
svn ci foo -m "delete foo"
mv foo.tmp foo

> Next is these a way to make the ignore property for a directory apply
> to all sub dirs recursively. The next project I want to move to svn
> is much larger and has many nested directories

No, but you could set up global ignores in your Subversion config file. This is specific to your Subversion client, however, and would not apply to anybody else checking out a working copy, so setting svn:ignore on each directory might be best.
Received on 2010-09-23 04:30:18 CEST

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.