简体   繁体   English

检出文件,但是忽略所做的任何更改,是否不将其包含在svn commit或svn status中?

[英]Check out file, but then ignore any changes made, don't include it with svn commit or svn status?

We have our Eclipse .classpath and .project (among others) in our SVN repository. 我们在SVN信息库中有Eclipse .classpath和.project(以及其他)。 I really don't want SVN reminding me that I've updated the file. 我真的不希望SVN提醒我我已经更新了文件。 I never want to check in this file. 我从不想签入此文件。 I just want SVN to forget I have checked it out, and leave me alone. 我只是想让SVN忘记我已经签出,而让我独自一人。 Is this possible? 这可能吗? :) :)

The first thing I do when I create an Eclipse project hooked up to Subversion is svn:ignore the .classpath and .project file. 创建连接到Subversion的Eclipse项目时,我要做的第一件事是svn:ignore .classpath和.project文件。 Since you've already done this, I would just remove them from your svn, and THEN ignore them. 既然您已经完成了此操作,那么我将其从您的svn中删除,然后忽略它们。 There's no reason for them to be in there, honestly. 老实说,没有理由让他们呆在那里。

I'm not sure if there is an official way. 我不确定是否有正式方法。

However you can add both files to svn:ignore. 但是,您可以将两个文件都添加到svn:ignore。

Name the checked in files txt.classpath and txt.project. 将检入文件命名为txt.classpath和txt.project。 Copy them to the correct names after checkout. 结帐后将其复制为正确的名称。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM