最佳一般SVN忽略模式? [英] Best general SVN Ignore Pattern?
问题描述
使用哪种最佳(或尽可能好的)常规SVN忽略模式?
What is the best (or as good as possible) general SVN ignore pattern to use?
有许多不同的IDE,编辑器,编译器,插件,平台等特定文件和一些重叠"的文件类型(即某些类型的项目需要,而其他类型的项目则不需要).
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).
但是,无论您的开发环境如何,您都永远不想将大量文件类型自动包含在源代码管理中.
这个问题的答案可以作为任何项目的一个很好的起点-仅要求他们添加一些所需的特定于环境的项目.它也可以适用于其他版本控制系统(VCS).
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.
推荐答案
我将为这个问题加两分钱:
I'll add my own two cents to this question:
对于Windows和Linux平台上的本机C ++,C#/VB.NET和PERL项目,我对TortoiseSVN和Subversion CLI使用以下SVN忽略模式.这对我来说很有效!
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:
*.o *.lo *.la #*# .*.rej *.rej .*~ *~ .#* .DS_Store thumbs.db Thumbs.db *.bak *.class *.exe *.dll *.mine *.obj *.ncb *.lib *.log *.idb *.pdb *.ilk *.msi* .res *.pch *.suo *.exp *.*~ *.~* ~*.* cvs CVS .CVS .cvs release Release debug Debug ignore Ignore bin Bin obj Obj *.csproj.user *.user *.generated.cs
经过格式化以提高可读性:
Formatted for readability:
*.o *.lo *.la #*# .*.rej *.rej
.*~ *~ .#* .DS_Store thumbs.db
Thumbs.db *.bak *.class *.exe *.dll
*.mine *.obj *.ncb *.lib *.log
*.idb *.pdb *.ilk *.msi* .res *.pch *.suo
*.exp *.*~ *.~* ~*.* cvs CVS .CVS .cvs
release Release debug Debug
ignore Ignore bin Bin obj Obj
*.csproj.user *.user
*.generated.cs
这篇关于最佳一般SVN忽略模式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!