简体   繁体   English

从父文件夹忽略SVN中的文件

[英]Ignoring files in SVN from parent folder

Is it possible to ignore file that is in the folder nested inside the project tree? 是否可以忽略嵌套在项目树中的文件夹中的文件? When I'm adding such entry using "svn propedit svn:ignore ." 当我使用“svn propedit svn:ignore”添加这样的条目时。 in my root folder: 在我的根文件夹中:

src/folder1/folder2/folder3/File1.java

SVN still displays file as unversioned(with "?" mark) and doesn't ignore it. SVN仍然将文件显示为无版本(带有“?”标记)并且不会忽略它。

The svn:ignore property applies only to the contents of the folder it is set to, and not to any of its subfolders, see: Version Control with Subversion, Chapter "Ignoring Unversioned Items" svn:ignore属性仅适用于它所设置的文件夹的内容,而不适用于其任何子文件夹,请参阅: 使用Subversion进行版本控制,“忽略无版本项目”一章

In order to ignore File1.java, set svn:ignore on folder3 rather than on the root folder. 要忽略File1.java,请在folder3上而不是在根文件夹上设置svn:ignore。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM