Reputation: 697
I currently have 2 branches, the master branch, and a feature branch. The feature branch is complete so I'd like to merge them by basically overriding the master branch with the feature branch.
However, when I open up the merge window, I have a blank editor and a lot of files on the left have a red square with a C
Whenever I clock on a file with the red warning, I get an error message saying:
The same error appears for every file. What should I do in order to be able to merge my two branches?
Some other notes that may be important:
Upvotes: 3
Views: 1287
Reputation: 1326872
In that particular case, it is best to switch to Git in command-line, instead of trying to emulate the scenario in XCode:
cd /path/to/repo
git checkout feature_branch
git merge -s ours master
git checkout master
git merge feature_branch
Then you can go on with XCode, and push your master
branch.
Upvotes: 2