What is the best (or as good as possible) general SVN ignore pattern to use?
There are a number of different IDE, editor, compiler, plug-in, platform, etc. specific files and some file types that "overlap" (i.e. desirable for some types projects and not for others).
There are however, a large number of file types that you just never want included in source control automatically regardless the specifics of your development environment.
The answer to this question would serve as a good starting point for any project - only requiring them to add the few environment specific items they need. It could be adapted for other Version Control Systems (VCS) as well.
Visual Studio (VC++) users definitely need to exclude the .ncb files
gitignore.io provides configurable patterns for git. They provide a readable list, which you need to reformat for SVN.
For instance, requesting MicrosoftOffice and Windows returns
It seems that it can be directly used as
svn:global-ignore
I'll add my own two cents to this question:
I use the following SVN ignore pattern with TortoiseSVN and Subversion CLI for native C++, C#/VB.NET, and PERL projects on both Windows and Linux platforms. It works well for me!
Formatted for copy and paste:
Formatted for readability:
Windows users might want to throw in desktop.ini and thumbs.db.
gitignore.io provides configurable patterns for git. They provide a readable list, which you need to reformat for SVN.
For instance, requesting MicrosoftOffice and Windows returns
Visual Studio 2010 users should add
ipch
(a folder which contains C++ precompiled headers) and*.sdf
(huge files used by intellisense for any kind of project).