opendiff and FileMerge on OS X

转摘自: http://www.markomedia.com.au/osx/opendiff-and-filemerge-on-os-x/

Today I discovered opendiff tool that’s native to OS X – provided you have installed the Xcode on your system. It allows you to compare 2 directories and perform actions such as merge-left, merge-right etc…

Opendiff simply launches FileMerge OS X utility, which is another one I didn’t know about, and displays differences between 2 selected directories.

The very simple command to compare 2 directories is:

opendiff dir1 dir2

This will then launch FileMerge utility and give you a nice visual representation of differences in your folders:
opendiff and FileMerge on OS X_第1张图片

Marko

你可能感兴趣的:(OS,xcode,command)