Skip to content

Instantly share code, notes, and snippets.

@kylefox
Created January 11, 2013 18:15
Show Gist options
  • Save kylefox/4512777 to your computer and use it in GitHub Desktop.
Save kylefox/4512777 to your computer and use it in GitHub Desktop.
If you want to use Xcode's FileMerge as your git mergetool, this is how you set it up.
# Tell system when Xcode utilities live:
sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer
# Set "opendiff" as the default mergetool globally:
git config --global merge.tool opendiff
@ndstephens
Copy link

thank you. exactly what i was looking for

Copy link

ghost commented Aug 22, 2018

Fantastic, thank you!

@domoench
Copy link

πŸ‘

@shameen
Copy link

shameen commented Feb 17, 2021

I also ran this, so after saving changes and exiting, git wouldn't ask "Was the merge successful? [y/n]?"

git config --global mergetool.opendiff.trustExitCode true

(Credit: https://stackoverflow.com/q/10656719/4810109)

@granchenkooleg
Copy link

πŸ‘

@YeeJiaWei
Copy link

thank you πŸ‘πŸ»

@pryder-fleetaero
Copy link

πŸ‘ Still useful 10 years on

@jms1voalte
Copy link

😎 Thanks for this.

@nest-don
Copy link

nest-don commented Oct 4, 2022

thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment