简体   繁体   English

如何使用textmate查看git diff

[英]How do I view git diff with textmate

我的编辑器设置是textmate但是当我做一个git diff它使用vi向我显示diff输出,有没有办法设置它来显示textmate中的差异?

我通常管道内容交配像这样:

git diff | mate -

The GIT_PAGER environment variable is used to specify which program to use to show multi-page output. GIT_PAGER环境变量用于指定用于显示多页输出的程序。 You should be able to set this to point to textmate. 您应该能够将其设置为指向textmate。

If you have the Terminal link installed it's simple: 如果你安装了Terminal链接,那很简单:

git diff | mate

I personally have an alias setup that maps 'diffmate' to that command. 我个人有一个别名设置,将'diffmate'映射到该命令。

此外,应该指出,在TextMate中,可以使用Bundles >> Diff在TextMate中执行比较。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM