TortoiseSVN和Subversion的全局忽略

问题描述 投票:9回答:1

我在说服TortoiseSVN遵守我的Subversion存储库的svn:global-ignores属性时遇到问题。不管我尝试了什么,它仍然将所有应该被忽略的文件列为未版本化并且可以提交。

我的svn:global-ignores字符串,在存储库的根目录上设置(注意binobj指向末尾):

*.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 _ReSharper.* *.resharper.user

我的提交窗口的屏幕截图:

<< img src =“ https://image.soinside.com/eyJ1cmwiOiAiaHR0cHM6Ly9pLnN0YWNrLmltZ3VyLmNvbS9hbk11Wi5wbmcifQ==” alt =“问题提交窗口”>

如何防止所有这些binobj文件夹出现?在以前的机器上,我使用了TortoiseSVN的global ignore属性,但是我希望所有开发人员都可以忽略这些文件,而不必记住在我们设置的每台新机器上都设置了该字段。我是否误解了SVN的global-ignores是什么?

svn tortoisesvn
1个回答
11
投票

Note in CollabNet blog-post

svn:global-ignores中的忽略模式属性可以用任何空格分隔(类似于全局忽略运行时配置选项),而不仅仅是换行符(如(使用svn:ignore属性),但是1.8.0中只有一个错误换行符分隔模式的工作

© www.soinside.com 2019 - 2024. All rights reserved.