Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to handle merge conflicts in Xcode "pbxproj" file?

Everytime I do a pull, there is a merge conflict from my other team member.. And I've tried to manually remove the ==== and >>>>'s but Xcode will never open the file after this.

I am just curious, is this a problem that EVERY iOS person on a team deals with? Is there any sort of tip or trick to avoid this nonsense? It's seriously slowing down my productivity by a huge amount.

like image 758
patrick Avatar asked Aug 16 '12 03:08

patrick


People also ask

How do I resolve merge conflict in Mergetool?

We can manually resolve the merge conflict by editing the content in the bottom pane, and then saving the file using :wqa (Write and Quit all files). Once the conflict resolution is successful, the merged file will be staged for commit. git commit -m 'Merged from multiple branches' .

How would you handle a merge conflict with deleted files?

If you want to keep the file deleted, use the "rm” command (for the command line). Otherwise, use the "add” command to restore the file. This will resolve the conflict for that file.


1 Answers

You just need a good merge tool. I use p4merge: http://www.andymcintosh.com/?p=33 contains a guide to integrating it with Git.

like image 105
borrrden Avatar answered Nov 12 '22 13:11

borrrden