Is there a concept of global ignores in svn?

谁都会走 提交于 2019-11-29 21:17:48

On an install of Subversion, there is a file in a path such as one of the following:

  • Windows Vista/7: C:\Users\<username>\AppData\Roaming\Subversion
  • Windows XP: c:\Documents and Settings\<username>\.subversion\config
  • Unix (Linux, etc), macOS: $HOME/.subversion/config

that contains a global configuration for Subversion. In the [miscellany] section is a global-ignores parameter which you can use to set up globally ignored filename patterns.

The Runtime Configuration Area section of the Subversion book has more information, including how to set up such global configuration parameters in the registry if you need to.

Typical examples:

[miscellany]
global-ignores = *.o *.so *.so.[0-9]* .DS_Store [Tt]humbs.db

or perhaps if you are in a transition phase to using Git:

[miscellany]
global-ignores = .git

It is possible to setup global ignores in a repository if you use Subversion 1.8 and newer client.

Subversion 1.8 release introduced Repository Dictated Configuration feature. Thanks to this new feature, you can configure svn:global-ignores property on repository side.

See SVNBook 1.8 | Ignoring Unversioned Items and SVNBook 1.8 | Inherited properties for more information.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!