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
  • 17,178
  • 11
  • 66
  • 105

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,129,465
  • 480
  • 4,036
  • 4,755