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 example: 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 info. Nick