Thursday, August 8, 2013

How to ignore unwanted files while checking into SVN Repository?


If you want to ignore some sort of files for eg : .class files while you are checking source code into SVN repository, Follow below steps


Download and install 'Tortoise SVN' client on your machine, this is one of the best IDE client to connect to SVN Repository.

Step1 : After installation, Right click on the application where you want to configure ignore list,Choose TortoiseSVN->Properties-> Click on 'New' button as shown in below screenshot.

Step2: Chohose 'svn:ignore' option from the drop down list of values, enter all the property values which you want to ignore while you are checking into SVN Repository.
Step3 : Click on 'Ok', Ensure to commit these properties into repository, So that you don't need to configure these properties every time.
                                              OR

Step4: Right click anywhere , Select Tortoise SVN -> Settings , Enter below values for 'Global Ignore Pattern' field

classes */classes output */output *. *-oc4j-app.xml *.log* *.bak *.cdi *.client_contrib *.contrib* *.generated.java *.ignore *.keep *.labellog.emd *.mv* *.rename.* *.rvi *.saved.* *.scc *.sync.* *.unbranch.* *.unco.* *.unmkelem.* .#* .*.cs .ade_path .depprod .depprod_nt .fullsource .fullsource_nt temp external_jars */external_jars deploy */deploy


Note : Tortoise SVN can ignore only Unversioned files..

No comments:

Post a Comment