2

My .gitattributes has the following in order to diff the XCode project (which is plain text)

*.pbxproj -crlf -diff -merge

But when I diff, still showing binary file

# 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

My .gitattributes is in the same level of .git folder

Jano
  • 61,767
  • 21
  • 157
  • 186
Howard
  • 18,205
  • 34
  • 108
  • 175

1 Answers1

0

Correct. Your .gitattributes is saying to treat the file as binary when it comes to diffing and merging. Take a look at this StackOverflow question, which is awfully similar to yours: Git and pbxproj

Community
  • 1
  • 1
John Szakmeister
  • 41,719
  • 9
  • 84
  • 75