svn:ignore 排除文件被忽略 [英] svn:ignore exclude a file from being ignored

查看:34
本文介绍了svn:ignore 排除文件被忽略的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个目录,其中包含具有各种扩展名的文件.我想在 svn:ignore 中执行以下 .gitignore 代码的等效操作:

I have a directory which contains files with various extensions. I would like to do the equivalent of the following .gitignore code in svn:ignore:

*.* # ignore everything
!.htaccess # except this file

我如何在 svn:ignore 中实现这一点?

How do I achieve this in svn:ignore?

推荐答案

如果您已经将 .htaccess 文件添加到 SVN 控件中,那么就没有关系了.您将始终看到对该文件的更改.忽略列表唯一起作用的是尚未添加到存储库的文件.您可以全局忽略目录中的所有内容,仍然将.htaccess文件添加到SVN控件中并查看修改等

If you've already added the .htaccess file to SVN control, then it won't matter. You will always see changes to that file. The only time the ignore list comes into play is for files which have not yet been added to the repository. You can ignore everything in the directory globally and still add the .htaccess file to SVN control and see modifications, etc.

这篇关于svn:ignore 排除文件被忽略的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆