简体   繁体   English

SVN:保留文件夹; 忽略内容

[英]SVN: Keep Folder; Ignore Content

Folks, 民间,

How can I permanently ignore the content of a folder with SVN? 如何使用SVN永久忽略文件夹的内容? I have a "build" folder, but as I add new source libraries, etc., new content gets created, the I have to manually go and add to ignore list. 我有一个“ build”文件夹,但是当我添加新的源库等时,会创建新的内容,因此我必须手动去添加忽略列表。 In git is easy to do, but I can't find a way to automate it on SVN 在git中很容易做到,但是我找不到在SVN上自动化它的方法

Use the svn:ignore property to ignore the build folder entirely. 使用svn:ignore属性可以完全忽略构建文件夹。 Execute this command in the same folder that the "build" folder is in: 在“ build”文件夹所在的文件夹中执行以下命令:

svn propset svn:ignore build .

Then commit the change. 然后提交更改。

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

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