特定于eclipse的设置应该是源代码存储库的一部分吗

特定于eclipse的设置应该是源代码存储库的一部分吗,eclipse,Eclipse,作为源代码存储库的一部分添加特定于eclipse的设置有意义吗 (use "git add <file>..." to include in what will be committed) # # ivr/.classpath # ivr/.project # ivr/.settings/ no changes added to commit (use "git add" and/or "git commit -a") sam@dell:~/work$ ls iv

作为源代码存储库的一部分添加特定于eclipse的设置有意义吗

   (use "git add <file>..." to include in what will be committed)
#
#   ivr/.classpath
#   ivr/.project
#   ivr/.settings/
no changes added to commit (use "git add" and/or "git commit -a")

sam@dell:~/work$ ls ivr/.settings/
org.eclipse.jdt.core.prefs        org.eclipse.wst.common.project.facet.core.xml
org.eclipse.wst.common.component
(使用“git add…”包含在将提交的内容中)
#
#ivr/.classpath
#ivr/.project
#ivr/.settings/
未向提交添加任何更改(使用“git add”和/或“git commit-a”)
sam@dell:~/work$ls ivr/.settings/
org.eclipse.jdt.core.prefs org.eclipse.wst.common.project.facet.core.xml
org.eclipse.wst.common.component

是的,您也想提交这些设置文件。否则,在执行签出时,您将获得相同的项目内容,但将在不同的设置下编译它们。所以你不再有一个独立的可复制项目了


示例:如果您在项目的Java设置(位于org.eclipse.jdt.core.prefs中)中设置了Java 1.5的编译器遵从性级别,并且您没有提交它们,那么其他人可能会签出项目,在代码中引入一些Java 6语言功能,并且它将在他的机器上工作,但是,在获取他的更改后,您将收到编译错误。

是的,您也想提交这些设置文件。否则,在执行签出时,您将获得相同的项目内容,但将在不同的设置下编译它们。所以你不再有一个独立的可复制项目了

示例:如果您在项目的Java设置(位于org.eclipse.jdt.core.prefs中)中设置了Java 1.5的编译器遵从性级别,并且您没有提交它们,那么其他人可能会签出项目,在代码中引入一些Java 6语言功能,并且它将在他的机器上工作,但是在获取他的更改后,您将得到编译错误