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

Re: ignored files

From: Nick <nospam_at_codesniffer.com>
Date: Mon, 20 Dec 2010 02:05:38 -0500

On Sat, 2010-12-18 at 09:39 -0800, sajan wrote:
> hi
> is there any way I can avoid adding particular folders/files when I
> add my code to subversion.In git you can do that using .gitignore
> file.
> suppose I have this directory structure
> mycode
> |----tobeignored1
> |----tobeincluded
> |---tobeignored2
> |---myimage.jpg
> |---tobeincluded2
> |---mylib
> |---lib1.jar
> here I want to ignore folders tobeignored1,tobeignored2 and file
> myimage.jpg and add the other folders and files .Can someone tell me
> how to do this?

Not sure if there's a better way to accomplish this, but you can revert
added files after adding them and before committing them. In your

svn add mycode (this will add the mycode directory + all files inside)
svn revert mycode/tobeignored1 mycode/tobeignored2 mycode/myimage.jpg
svn commit mycode

You can also ignore files so they don't show up in svn operations (like
svn status). This is accomplished via the svn:ignore property. See SVN
properties (http://svnbook.red-bean.com/en/1.1/ch07s02.html) for more

Received on 2010-12-20 08:06:20 CET

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.