SVN:无视操作方法和操作内容? [英] SVN:ignore how-to and on what?

查看:77
本文介绍了SVN:无视操作方法和操作内容?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我看来,在.classpath之类的文件上添加svn:ignore属性将是一个好主意。我同时使用Windows(工作环境,ugh)和Linux开发环境,每次与存储库同步时,它都会覆盖我正在使用的任何计算机上的.classpath。

It seems to me that adding the property svn:ignore on files like .classpath would be a good idea. I use both Windows (work, ugh) and Linux development environments and every time I sync with the repository it overwrites my .classpath from whichever machine I'm working on.

我尝试在团队同步透视图中右键单击.classpath文件,但是svn:ignore选项显示为灰色。

I tried right-clicking the .classpath file in the Team Sync perspective, but the svn:ignore option is greyed out.

我怎么想:1.得到这个项目不在源代码管理范围之内,2.将其添加到忽略列表中?

Any ideas how I might: 1. get this item out of source control, 2. add it to an ignore list?

是否有其他文件对此列表进行了智能添加?

Any other files a smart addition to this list?

推荐答案

在命令行上:

svn rm --keep-local .classpath
svn pe svn:ignore .

第一个命令从SVN中删除 .classpath 同时将文件保留在本地。第二个命令使您可以编辑 svn:ignore 。在属性中添加 .classpath。

The first command removes .classpath from SVN while keeping the file locally. The second command lets you edit svn:ignore. Add ".classpath" to the property.

一般规则是,不应对任何生成输出,特定于计算机或特定于用户的文件进行版本控制,然后再添加到 svn:ignore 。我不特别熟悉Java或Eclipse,因此无法按名称提及任何文件。

The general rule is that any build output, machine-specific, or user-specific files should not be versioned and then be added to svn:ignore. I'm not familiar with Java or Eclipse specifically so I couldn't mention any files by name.

这篇关于SVN:无视操作方法和操作内容?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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