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

Re: Is there any way to "un-add" a file or directory?

From: Jamie Wellnitz <Jamie.Wellnitz_at_emulex.com>
Date: 2004-03-09 21:46:00 CET

On Tue, Mar 09, 2004 at 12:37:54PM -0800, Jeff Bowden wrote:
> Quite a few times now I have gone to add a directory of new code to a
> project with "svn add" only to realize that there were some files or
> subdirectories of files which I don't really want to add. What I end up
> doing in this case is moving some portion of the tree out of the way,
> doing an "svn update" and then moving the files I actually want to add
> back into the tree.
>
> It's kind of a pain. Does anyone have a better way? It would be cool
> if I could just "un-add" some of the files marked to be added, but I
> can't figure out any way to do this.
>

svn revert [added-file]

seems to work for me.

-- Jamie Wellnitz
Jamie.Wellnitz@emulex.com

>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Mar 9 21:47:07 2004

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