1

In Xcode, after git mergetool, there are some backup files like this:

X.xcodeproj/project.pbxproj.BACKUP.36127.pbxproj
X.xcodeproj/project.pbxproj.LOCAL.36127.pbxproj
X.xcodeproj/project.pbxproj.REMOTE.36127.pbxproj

How to ignore these files in git with .gitignore?

Thanks.

fannheyward
  • 18,599
  • 12
  • 71
  • 109

1 Answers1

0

As in this article, you could add in your global ignore file:

*.BACKUP.*.pbxproj
*.BASE.*.pbxproj
*.LOCAL.*.pbxproj

Strangely enough, there isn't yet an XCode file in the "GitHub Ignore" global files project.

indiantroy suggested also ignoring:

*.REMOTE.*.pbxproj
Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250