在 Eclipse 中添加一些东西来忽略 SVN 列表的地方在哪里
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/6156545/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
where is the place in Eclipse to add something to ignore list of SVN
提问by Bohn
I want to tell SVN in Eclipse to ignore these when I check in the code. where is the place to go to set this ignore list:
当我签入代码时,我想告诉 Eclipse 中的 SVN 忽略这些。在哪里设置这个忽略列表:
.classpath
.project
.settings*
target
回答by mhaller
Select project > Team > Synchronize with Repository.
选择项目 > 团队 > 与存储库同步。
Then right-click on file, select "Add to svn:ignore"
然后右键单击文件,选择“添加到 svn:ignore”
Or go to Window > Preferences > Team > Ignores Resources and add the patterns there.
或者转到 Window > Preferences > Team > Ignores Resources 并在那里添加模式。
回答by bmoran
Make sure you ignore the file type BEFORE commiting to repository since SVN doesn't allow you to ignore a committed file or type.
确保在提交到存储库之前忽略文件类型,因为 SVN 不允许您忽略提交的文件或类型。
回答by Cédric Julien
You can add them as svn properties using a command line client or the TeamSynchronizing menu via the "Add to svn:ignore" sub menu.
您可以使用命令行客户端或 TeamSynchronizing 菜单通过“添加到 svn:ignore”子菜单将它们添加为 svn 属性。
With a svn client :
使用 svn 客户端:
svn propset svn:ignore .classpath .
svn propset svn:ignore .project .
svn propset svn:ignore .settings* .
svn propset svn:ignore target .
回答by JuanZe
Right-click the file or directory you want to exclude from version control, then choose Team > Add to svn:ignore to display the Add to svn:ignore dialog.
右键单击要从版本控制中排除的文件或目录,然后选择 Team > Add to svn:ignore 以显示 Add to svn:ignore 对话框。
回答by esthern
If you've already committed the .project and / or the .classpath files, all is not lost!
如果您已经提交了 .project 和/或 .classpath 文件,一切都不会丢失!
Delete the .project and / or .classpath files manually: you can use the command line, for example, or go to your project in a navigator window (not Eclipse) where you will need to show hidden files.
手动删除 .project 和/或 .classpath 文件:例如,您可以使用命令行,或者在需要显示隐藏文件的导航器窗口(不是 Eclipse)中转到您的项目。
Refresh your project in Eclipse, and it'll give you plenty of errors.
在 Eclipse 中刷新你的项目,它会给你很多错误。
Commit (by right-clicking your project) the fact that the files are deleted.
提交(通过右键单击您的项目)文件被删除的事实。
Then you can rebuild your project to get rid of the errors.
然后您可以重建您的项目以消除错误。
回答by aianitro
To check list of ignored items: Right click on the project -> Team -> Show properties -> 'svn:ignore' item in the table
要检查被忽略的项目列表:右键单击项目 -> 团队 -> 显示属性 -> 'svn:ignore' 表中的项目