忽略 SVN 忽略...可能吗? [英] Ignore SVN ignore... possible?

查看:26
本文介绍了忽略 SVN 忽略...可能吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我想在 subversion 存储库中忽略一些文件,但我不希望我的忽略模式传播到存储库.

So I have some files I want to ignore in a subversion repository, but I don't want my ignore patterns for this to be propagated to the repository.

换句话说,我在结账时添加了一些我想保留的私人文件,但它们只对我存在,对所有人都没有意义,因此如果我使用 svn:ignore,这将应用到目录上,我要么必须检查它(我不想这样做),要么每次执行 svn status 时都会看到该目录被修改.

In other words, I added some private files in my checkout that I want to keep, but they only exist for me and wouldn't make sense to be ignored for everyone, so if I use the svn:ignore, this will apply on the directory, and I either have to check that in (which I don't want to do), or see that this directory was modified every time I do an svn status.

所以,理想情况下,我想要一个 .svnignore 文件,然后我可以将其标记为忽略自身以及其他一些文件(我认为这在 git 中是可能的,例如,使用 .gitignore 文件,或任何其他文件)名字是).

So, ideally I would like something like a .svnignore file which I could then mark to ignore itself as well as some other files (I think this is a possibility in git for example, using a .gitignore file, or whatever the name is).

我猜忽略整个目录可能会起作用(也许),但是我怀疑我不会在该目录中看到任何新文件,这也是不可取的.

I'm guessing it might work to ignore the whole directory (maybe), but then I suspect I won't see any new files in that directory, which would also not be desirable.

那么有没有人知道在颠覆中做到这一点的方法?

So does anybody know a way to do this in subversion?

推荐答案

Subversion 确实 有一个 每个用户,全局忽略设置,这听起来像您想要的.查看您的 .subversion 目录(在您的 home 目录中)并找到配置文件的 Miscellany 部分.应该有一个名为 global-ignores 的条目.

Subversion does have a per-user, global ignore setting, which sounds like what you want. Look in your .subversion directory (found in your home directory) and locate the Miscellany section of the config file. There should be an entry called global-ignores.

对于 Windows 用户,此设置位于 HKEY_LOCAL_MACHINE\Software\Tigris.org\Subversion 下的注册表中.

For Windows users, this setting is found in the registry under HKEY_LOCAL_MACHINE\Software\Tigris.org\Subversion.

更多信息可在 使用 Subversion 的版本控制(SVNBook).

这篇关于忽略 SVN 忽略...可能吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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