How do you make git diff use gitx --diff on OS X

后端 未结 7 2020
礼貌的吻别
礼貌的吻别 2020-12-23 23:14

Gitx has a great diff viewer, how do I make git automatically pipe git diff whatever into gitx?

I\'ve tried to set git config diff.external to a shell scrip

相关标签:
7条回答
  • 2020-12-24 00:08

    I am not quite sure this is what you want but for us on Macs it sure is handy anyway and somewhat related, you might want to try:

    $ git difftool -t opendiff #hash

    That opens the diff in the opendiff program which I find very useful. This is much easier than creating a shell script and forcing all your diffs through the new external diff. If you are not on a Mac you can probably change the opendiff into your favorite available diff tool...

    0 讨论(0)
提交回复
热议问题