How to use XCode's mergetool to resolve conflicts?
问题 I'm in the middle of a rebase and I need to fix some merge conflicts. When I open the file in XCode, I see the source control conflict markers (<<<<<<<, etc) in the file. How can I use XCode's mergetool to resolve these conflicts in a graphical fashion? I'm looking for this screen: 回答1: Pulling the answer from here # Tell system when Xcode utilities live: sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer # Set "opendiff" as the default mergetool globally: git config -