如何让 svn 仅在我的工作副本中忽略 unversion 文件? [英] How do I make svn ignore unversion files only in my working copy?
问题描述
假设我的工作副本中散布着我不想删除的未版本控制的文件.我想让 svn 忽略这些文件,但我不想想将它们添加到忽略列表中,因为我不想用我的忽略列表污染其他人的工作副本.这在 svn 中可行吗?
澄清:我不知道为什么,但人们一直建议我编辑我的全局配置;然而,这不是我想要的.我想要做的是针对特定工作副本中的特定文件.这甚至可能吗??
是的,用户配置文件 可以包含global-ignores
选项,这正是您要找的.p>
此文件的位置因平台而异.来自文档:
<块引用>在类 Unix 系统上,此区域显示为用户主目录中名为 .subversion 的目录.在 Win32 系统上,Subversion 创建一个名为 Subversion 的文件夹,通常在用户配置文件目录(顺便说一下,通常是一个隐藏目录)的应用程序数据区域内.但是,在此平台上,确切位置因系统而异,并由 Windows 注册表规定.
duplicate: Ignore SVN ignore... possible?
Suppose my working copy is littered with unversioned files that I don't want to delete. I want svn to ignore these files, but I do not want to add them to the ignore list, because I don't want to pollute other people's working copy with my ignore list. Is this possible in svn?
Clarification: I'm not sure why, but people keep advising me to edit my global configs; however, this is not what I'm what I'm looking for. What I want to do is target specific files in a particular working copy. Is this even possible??
Yes, the user configuration file can contain the global-ignores
option which is exactly what you're looking for.
The location of this file varies by platform. From the documentation:
On Unix-like systems, this area appears as a directory named .subversion in the user's home directory. On Win32 systems, Subversion creates a folder named Subversion, typically inside the Application Data area of the user's profile directory (which, by the way, is usually a hidden directory). However, on this platform the exact location differs from system to system, and is dictated by the Windows registry.
这篇关于如何让 svn 仅在我的工作副本中忽略 unversion 文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!