Skip to content

Instantly share code, notes, and snippets.

@kristofferh
Created June 8, 2012 14:24
Show Gist options
  • Save kristofferh/2895878 to your computer and use it in GitHub Desktop.
Save kristofferh/2895878 to your computer and use it in GitHub Desktop.
Open FileMerge from command line
Open FileMerge from command line
opendiff
If the command-line doesn't work, and you have no /Developer directory anymore, you probably need to:
sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer
@soffes
Copy link

soffes commented Aug 6, 2019

Thanks for this <3

@chriswoolfe
Copy link

Thanks!

@siliconmeadow
Copy link

Excellent! It also works with:

opendiff file1 file2

@ilyagr
Copy link

ilyagr commented Oct 27, 2024

Is there a way for it to block until the user is done, e.g. opendiff --wait analogous to VS Code's code --wait? opendiff --wait does not work.

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