2012-09-01 19 views
2

.gitattributes具有以下以diff的的的XCode項目(這是純文本)。 gitattributes不工作

*.pbxproj -crlf -diff -merge 

但是,當我Diff時,仍顯示出二進制文件

# git diff MyApp.xcodeproj/project.pbxproj 
diff --git a/MyApp.xcodeproj/project.pbxproj b/MyApp.xcodeproj/project.pbxproj 
index xxx..xxx xxx 
Binary files a/MyApp.xcodeproj/project.pbxproj and b/MyApp.xcodeproj/project.pbxproj differ 

.gitattributes處於.git文件夾的同一級別

回答

0

正確。您的.gitattributes表示在區分和合並時將文件視爲二進制文件。看看這個StackOverflow問題,這個問題與你非常相似:Git and pbxproj