忽略 SVN 中的目录而不影响 svn:ignore 在服务器上? [英] Ignore directory in SVN without affecting svn:ignore on server?

查看:24
本文介绍了忽略 SVN 中的目录而不影响 svn:ignore 在服务器上?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道 svn:ignore 属性,但这并不能解决我的问题.

I know about the svn:ignore property, but that doesn't solve my problem.

我有一个源目录.我想在其中创建一个名为build"的目录,我将在其中构建.我不想将build"放在 svn:ignore 中,因为使用相同存储库的其他人不需要忽略它,我可能希望为此使用不同的名称.

I have a source directory. I want to create a directory inside it, called "build" that I will build inside. I don't want to put "build" in svn:ignore because other people using the same repository don't need it ignored, and I may want to have different names for this.

一般问题是这样的:

给定一个 subversion 目录的工作副本,我想创建一个子目录,该子目录将被 svn 忽略而不修改服务器上的任何内容.如果我可以创建一个目录并在其中粘贴一个空的.svn_ignore_this_directory"文件或其他东西,那就太棒了.我认为在 git 中,这就像用."创建一个 .gitignore 文件.在里面,但也许那是不对的.svn 可以吗?

Given a working copy of a subversion directory, I want to make a subdirectory that will be ignored by svn without modifying anything on the server. If I could make a directory and stick an empty ".svn_ignore_this_directory" file inside it or something, that would be awesome. I think in git it would be something like making a .gitignore file with just "." in it, but maybe that's not right. Can svn do this?

推荐答案

您有一个 .subversion 文件 定义本地机器的配置(此文件的位置取决于您的操作系统).在该文件中,使用 global-ignores 选项配置您希望本地 Subversion 忽略的文件或文件夹.对此文件所做的更改只会影响您的机器.

You have a .subversion file that defines the configuration of your local machine (the location of this file will depend on your OS). Inside that file, use the global-ignores option to configure files or folders that you want your local Subversion to ignore. Changes made to this file will only affect your machine.

这篇关于忽略 SVN 中的目录而不影响 svn:ignore 在服务器上?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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