- Create a
.gitattributes
file:
Assuming you don’t already have one, create a file called .gitattributes
in your project’s root directory.
- Set the merge strategy to union:
Add the following line to your .gitattributes
file.
This will tell git to merge using the union strategy, meaning it’ll keep both sides (theirs and ours).
*.pbxproj merge=union
As an alternative:
Check this library, this allows you to add a similar attribute.
*.pbxproj merge=mergepbx
- Add it to your project:
git add .gitattributes
Reference: