Mac的具体优化在〜/ .gitconfig [英] Mac specific optimizations in ~/.gitconfig

查看:381
本文介绍了Mac的具体优化在〜/ .gitconfig的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我阅读了有关Linux上〜/ .gitconfig内容的讨论: http: //stackoverflow.com/questions/267761/what-does-your-gitconfig-contain

I read that discussion about the content of "~/.gitconfig" on Linux: http://stackoverflow.com/questions/267761/what-does-your-gitconfig-contain

我知道一些Mac的特定优化,例如使用mate as default editor:

I know some Mac specific optimizations, such as using "mate" as default editor:

[core]
    editor = mate -w

或使用opendiff作为差异编辑器:

or using opendiff as diff editor:

[diff]
    external = opendiff

你知道其他Mac特定的优化或者工具),我可以在〜/ .gitconfig文件中安装/配置以获得一个非常用户友好的git?

Do you know other Mac specific optimizations (and/or tools) that I could install/configure in "~/.gitconfig" file in order to get a very user-friendly git?

推荐答案

我喜欢保留默认的 diff 命令内部,以便在终端快速摘要,并访问更高级的diff程序(我使用MacVim)使用 difftool commmand。我介绍设置过程这里。 Mac特定部分在我的包装器脚本中,其中我兼任地启动MacVim(如果可用),然后默认为常规Vim。你可以适应使用TextMate,当然,如果这是你的偏好。

I prefer to keep the default diff command internal, for quick summaries at the terminal, and access the more advanced diff programs (I use MacVim) using the difftool commmand. I describe the set up procedure here. The Mac-specific part is in my wrapper script, where I facultatively launch MacVim if it is available, then default to regular Vim. You can adapt to use TextMate, of course, if that is your preference.

这篇关于Mac的具体优化在〜/ .gitconfig的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆