svn:忽略修改哪个文件?(Which file does svn:ignore modify?)

编程入门 行业动态 更新时间:2024-10-05 21:25:50
svn:忽略修改哪个文件?(Which file does svn:ignore modify?)

我想知道哪个文件svn propset svn:ignore modifies(相当于.gitignore ),以便我可以将该文件实际提交到repo。

例如,我正在使用Java和Maven ,它创建了一个名为“target”的目录,我忽略了它。 svn propset svn:ignore target . 确实有效,但我不知道该命令修改了哪个设置文件,以便将更改传播给我的团队。

相关: SVN忽略像.gitignore

I would like to know which file svn propset svn:ignore modifies (equivalent to .gitignore) so that I can actually commit that file to the repo.

E.g. I am working with Java and Maven, which creates a directory named "target", which I am ignoring. svn propset svn:ignore target . does work but I don't know which settings file is modifies by that command so that I propagate the change to my team.

RELATED: SVN ignore like .gitignore

最满意答案

svn:ignore属性与.svn文件夹中的其他属性一起存储。 它将在您下次提交后自动存储在存储库中。 如果你只想提交svn:ignore更改而不提交其他“普通”文件,你可以尝试:

svn commit --depth=empty .

可以使用svn propget svn:ignore检查svn propget svn:ignore 。

svn:ignore property is stored together with other properties inside the .svn folder. It will be stored in the repository automatically after your next commit. If you want to commit only svn:ignore change without commiting other "normal" files you can try:

svn commit --depth=empty .

The value of svn:ignore can be checked with svn propget svn:ignore.

更多推荐

本文发布于:2023-08-07 12:13:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1464075.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:文件   svn   file   modify   ignore

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!