tags:

views:

35

answers:

2

Is there any way that I can ignore a file in my local working copy without polluting the svn properties? I don't want my local ignore pattern (e.g. temp files) being published to repository and cause repo having lots of useless information.

Just like in git, I can have .git/info/exclude. Is there any similar way in SVN?

Thanks

+1  A: 

You can put them into the changelist ignore-on-commit. See this question and its answer.

Joey
Thanks. In fact I know this method, but ignore-on-commit only works with svn 1.5+, and not every client is supporting it (e.g. Subclipse).
Adrian Shum
Though this method don't really suit my need but I think it is the best and most official answer for SVN. Thanks :)
Adrian Shum
A: 

Yes there is. Goto TortoiseSvn Setting -> General.

There is a global ignore edit box. Add the following as a good starting point to ignore items you do not want to go into the repository:

*.fbl6 *.fbpInf *.fb6lck *.*scc *.aps *.bak *.cache *.eto *.ilk *.ncb *.obj *.patch *.pch *.plg *.rdl.data *.sbr *.sqlsuo *.suo *.svclog *.tlh *.tli *.tmp *.user .vshost. *DXCore.Solution [Bb]in [Dd]ebug [Oo]bj [Rr]elease _[Rr]e[Ss]harper.* _UpgradeReport_Files Ankh.Load Backup* CVS PrecompiledWeb svnignore[.-] [Tt]humbs.db UpgradeLog*.* vti* lint.db

Simon Hughes
Oh Yes! I almost forgot that the "global" ignore list is in fact "local" ("local" in the sense it is kept local and not synced to svn). Thanks for reminding me for this! :)However it effects on all working copies, for which I may want that file to ignore in one working copy but not in another.
Adrian Shum