简体   繁体   English

Xcode 4.2.1在进行svn commit时不会忽略被忽略的文件(工作区,断点)

[英]Xcode 4.2.1 is not ignoring ignored files (workspace, breakpoints) when making svn commit

I'm using Lion and Xcode 4.2.1 and currently, every time I'm making commit, Xcode asks me to commit my project workspace settings (workspace, breakpoints), and it's very annoying because I don't need to commit that and I don't' want to see them. 我使用的是Lion和Xcode 4.2.1,目前,每次进行提交时,Xcode都会要求我提交项目工作区设置(工作区,断点),这很烦人,因为我不需要提交它,并且我不想见他们。 I tried to ignore those files by selecting "ignore" command but that doesn't seem to work - they still appear in the commit list. 我试图通过选择“忽略”命令来忽略那些文件,但这似乎不起作用-它们仍然出现在提交列表中。

If you are new to CVS like me I recommend using SmartCVS for Mac. 如果您像我一样不熟悉CVS,建议您使用Mac的SmartCVS。 Before you do anything copy your project to another folder so you have a backup in case something goes wrong while you do this. 在执行任何操作之前,请将您的项目复制到另一个文件夹中,以便进行备份,以防万一出错。 If you want to ignore a file left click on it and choose Ignore from the context menu. 如果要忽略文件,请单击它,然后从上下文菜单中选择“忽略”。 Afterwards you can go to the folder where the file is situated and you should see file .cvsignore This file is hidden so make sure you can see hidden files. 之后,您可以转到文件所在的文件夹,并且您应该看到文件.cvsignore该文件已隐藏,因此请确保您可以看到隐藏的文件。

If Ignore option is grayed out than you have already added this file and commited it. 如果“忽略”选项显示为灰色,则表示您已经添加并提交了该文件。 This means the CVS is already tracking your file. 这意味着CVS已经在跟踪您的文件。 First you should remove the file from CVS, then revert it and then you should be able to Ignore it. 首先,您应该从CVS中删除文件,然后将其还原,然后应该能够忽略它。

You can install these files to ignore. 您可以安装这些文件以将其忽略。 Then it will not show, but did not change the file will be stored in SVN. 然后它不会显示,但是没有更改的文件将被存储在SVN中。 Are you saying that the file added to the ignorance, but still see it in the list of changes you have done something wrong. 您是说该文件添加到了无知中,但仍然在更改列表中看到了您做错了什么。

You can not hide the file so that it could not be seen, and continued to record changes in SVN. 您无法隐藏文件以使其无法看到,并继续记录SVN中的更改。

You need to set up an alias in bash console, which you will filter the output files and remove unnecessary. 您需要在bash控制台中设置一个别名,该别名将过滤输出文件并删除不必要的文件。 I don't know how to do that, only know that can help you. 我不知道该怎么做,只知道可以为您提供帮助。

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

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