我在说服TortoiseSVN遵守我的Subversion存储库的svn:global-ignores
属性时遇到问题。不管我尝试了什么,它仍然将所有应该被忽略的文件列为未版本化并且可以提交。
我的svn:global-ignores
字符串,在存储库的根目录上设置(注意bin
和obj
指向末尾):
*.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 =“问题提交窗口”>
如何防止所有这些bin
和obj
文件夹出现?在以前的机器上,我使用了TortoiseSVN的global ignore属性,但是我希望所有开发人员都可以忽略这些文件,而不必记住在我们设置的每台新机器上都设置了该字段。我是否误解了SVN的global-ignores
是什么?
svn:global-ignores
中的忽略模式属性可以用任何空格分隔(类似于全局忽略运行时配置选项),而不仅仅是换行符(如(使用svn:ignore属性),但是1.8.0中只有一个错误换行符分隔模式的工作