2013-03-09 22 views
1

的一部分是否有意義添加日食具體設置爲源代碼庫的一部分應該偏食的具體設置是源代碼庫

(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") 

[email protected]:~/work$ ls ivr/.settings/ 
org.eclipse.jdt.core.prefs  org.eclipse.wst.common.project.facet.core.xml 
org.eclipse.wst.common.component 

回答

1

是的,要提交這些設置文件,太。否則,在進行結帳時,您會得到相同的項目內容,但會在不同的設置下進行編譯。所以你不再有一個獨立的可再現項目。例如:如果您在項目的Java設置(位於org.eclipse.jdt.core.prefs中)中設置了Java 1.5的編譯器合規性級別,並且您沒有提交它們,則其他人可能會簽出項目中,在代碼中引入一些Java 6語言功能,並且可以在他的機器上工作,但是在獲取其更改後您將收到編譯錯誤。