注意两点
- The Global Ignore List
Another way to ignore files is to add them to the global ignore list. The big difference here is that the global ignore list is a client property. It applies to all Subversion projects, but on the client PC only. In general it is better to use the svn:ignore property where possible, because it can be applied to specific project areas, and it works for everyone who checks out the project. Read the section called “General Settings” for more information.
- Ignoring Versioned Items
Versioned files and folders can never be ignored - that‘s a feature of Subversion. If you versioned a file by mistake, read the section called “Ignore files which are already versioned” for instructions on how to “unversion” it.
有时想有这需求,为了方便开发,团队需要首次上传项目IDE文件之类的,以后提交 的时候不需要再提交 ,因为上面说了,已经版本控制 的文件不可能在提交时通过配置ignore来忽略(不要提交框里显示出来),那么可以有个方法曲线救国:
Change Lists
SVN: Is there a way to mark a file as “do not commit”?
Tip
Changelists are purely a local client feature. Creating and removing changelists will not affect the repository, nor anyone else‘s working copy. They are simply a convenient way for you to organise your files.
SVN 全局忽略列表
公共过虑的文件模式
.[Bb][Aa][Kk] .[Dd][Bb] .[Ll][Oo][Gg] .[Mm][Aa][Pp] *.[Tt][Mm][Pp]
delphi 源码提交时需过虑的文件模式
.~ .[Dd][Dd][Pp] .[Dd][Cc][Pp] .stat .tds
vc6 vs2003 vs2005 源码提交时需过虑的文件模式
.aps .clw .ilk .idb .ncb .opt .obj .plg .pch .pdb .suo .user [Dd]ebug [Rr]elease .o .bin .out .scc
所有需过虑的文件模式
.[Bb][Aa][Kk] .[Dd][Bb] .[Ll][Oo][Gg] .[Mm][Aa][Pp] .[Tt][Mm][Pp] .~ .[Dd][Dd][Pp] .[Dd][Cc][Pp] .stat .tds .aps .clw .ilk .idb .ncb .opt .obj .plg .pch .pdb .suo .user [Dd]ebug [Rr]elease .fblz .o .bin .out .scc