gpt4 book ai didi

SVN - 如何为整个存储库/团队设置忽略模式?

转载 作者:行者123 更新时间:2023-12-01 23:43:50 28 4
gpt4 key购买 nike

有没有办法为整个存储库设置忽略模式,或者将忽略文件与代码本身一起 checkin ?

否则,当前和 future 的所有开发人员都必须通过电子邮件同步他们的忽略模式,而且总是有人不这样做。

编辑为对下面 AI G 的回答的回应。

And it's worth noting again that, unlike the global-ignores option, the patterns found in the svn:ignore property apply only to the directory on which that property is set, and not to any of its subdirectories. The svn:ignore property is a good way to tell Subversion to ignore files that are likely to be present in every user's working copy of that directory, such as compiler output ...

Subversion 1.8 provides a more powerful version of the svn:ignore property, the svn:global-ignores property. Like the svn:ignore property, svn:global-ignores can only be set on a directory and contains file patterns Subversion uses to determine ignorable objects.[21] These ignore patterns are also appended to any patterns defined in the global-ignores runtime configuration option together with any svn:ignore defined patterns. Unlike svn:ignore however, the svn:global-ignores property is inheritable [22] and applies to all paths under the directory on which the property is set, not just the immediate children of the directory.

卢克

最佳答案

将忽略模式添加到存储库的头部。每个开发人员在查看 repo 协议(protocol)时都会得到它。在 v1.8 中你可以;

svn propset svn:global-ignores *.ext

查看 docs on svn:ignore here .

关于SVN - 如何为整个存储库/团队设置忽略模式?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30100541/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com