Search code examples
xcodegitconflict

Failed Xcode Git Merge is stuck


We have a git based project with a friend and one master branch. He made some changes to some files, I made changes to some other files, and we may, most probably did, make changes to a couple of the same files. He committed and pushed all of his changes to the repo. Then I went and committed my changes and tried to pull his changes. I was presented with a few conflicts which I mostly resolved in favor of his changes because they were files I did not change. Then when I tried to push, I got a fatal: cannot do a partial commit during a merge.

These are the screens I get.showing the files with source control status

The window when i try to commit

The error message

What can I do? The project runs fine except that the main menu of the game isn't showing the images its supposed to, which are the ones he was working on and the class files he worked on, aside from a couple of other ones.


Solution

  • Xcode has issues with xcuserdata files and I had to discard changes and recommitt