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

Re: How do I remove a directory (or file) under version control (opposite of "svn add")

From: Andy Levy <andy.levy_at_gmail.com>
Date: 2005-12-31 13:50:21 CET

On 12/31/05, Jacob Atzen <jacob@aub.dk> wrote:
> On Sat, Dec 31, 2005 at 12:26:44PM +0100, Nagy Zoltán wrote:
> >
> > Hi!
> >
> > I need to remove a directory under version control, but must keep this
> > directory in local wokring copy. Unfortunately "svn delete" not just
> > remove under version control, but kill my directory (or file) from the
> > working copy after commit. So, how do I change a versioned file to be
> > unversioned, without local remove? (opposite of "svn add")
> The only was I'm aware of is to copy the offending directory someplace,
> delete it from the repository and move it back:
> cp -R dir/ /tmp
> svn delete dir
> svn ci -m "* Deleted dir"
> mv /tmp/dir .

Don't forget to delete all the .svn directories in the directory
you've removed from source control.

To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sat Dec 31 13:52:19 2005

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