svn:ignore global-ignores property 忽略某些文件
参考:http://qa.taobao.com/?p=2163
svn propedit svn:ignore . -editor-cmd notepad
或
EXPORT SVN_EDITOR=emacsclientw.exe
svn propedit svn:ignore .
运行上面的命令,会使用你设置的编辑器编辑svn:ignore 属性的内容,
从网上找了几个例子
似乎 svn:ignore 属性不能递归目录
不过svn 还有一个属性global-ignores ,这个属性只在客户端有效,
在windows 上,
%appdata%/Subversion 目录下有一个config 文件
在文件中[miscellany] 子模块下,有一个注释掉的属性global-ignore
它的值是一系列被忽略的文件目录对应的匹配符,用空格格式
[miscellany]
global-ignores = .usr *.hello *.o *.lo *.la *.al .libs *.so *.so.[0-9] *.a *.pyc *.pyo
global-ignores = .o *.lo *.la #*# ..rej .rej .*~ *~ .# .DSStore 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 _ReSharper. *.resharper.user
My ignore pattern for Visual Studio:
global-ignores= /bin */obj */Release */Debug *.suo *.err *.log *.obj *.bin *.dll *.exe *.LOG *.user *.pdb [tT]emp [tT]empPE Ankh.Load thumbs.db *.resharper *.vspscc *.vsssccc *.scc */ReSharper /ReSharper. bin obj .resharperoptions *.db *.bak *ReSharper *.snk logs output TestResults