Ignoring Eclipse project files in SVN project

随声附和 提交于 2019-11-27 10:41:47

问题


I have a PHP project set up in Eclipse with SVN support. Now, Eclipse adds its project files .buildpath and .project to the project and Subclipse wants to add it to the repository.

Now I could just use svn:ignore to let SVN ignore the files, but that's not an option for various reasons. So, is there a way to make Eclipse and Subclipse ignore the files (which it should anyway)?


回答1:


Preferences > Team > Ignored Resources




回答2:


Can you use global-ignores? If yes, customize it in your config file:

  • On Windows: C:\Documents and Settings\%USERID%\Application Data\Subversion\config
  • On Linux: ~/.subversion/config



回答3:


If you want to ignore folders in the eclipse ignored resources, the pattern is */.settings/* for the .settings folder for example




回答4:


Can you just uncheck the box for "Show unversioned files" in the commit window?




回答5:


If you right click on the folder in eclipse, and select Show Properties... you can add the svn:ignore right there and have it cascade down to every folder if you choose.

You could the following as a template:

svn:ignore

.settings
.project
.classpath
target



回答6:


if above answer (tortoise) has no option for commit window directly then

  1. go in tortoise setting -->context menu --> check the click on hide Menus for the unversioned path


来源:https://stackoverflow.com/questions/1591756/ignoring-eclipse-project-files-in-svn-project

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!