How do I view 'git diff' output with my preferred diff tool/ viewer?

后端 未结 26 2234
清酒与你
清酒与你 2020-11-22 03:20

When I type git diff, I want to view the output with my visual diff tool of choice (SourceGear \"diffmerge\" on Windows). How do I configure git to do this?

26条回答
  •  执笔经年
    2020-11-22 04:02

    If you're on a Mac and have XCode, then you have FileMerge installed. The terminal command is opendiff, so you can just do git difftool -t opendiff

提交回复
热议问题