Textmate git命令失败,出现'sh:line 1:git:command not found'

Wil*_*ris 27 git textmate

当尝试使用Git包中的一些TextMate命令时(例如'Show Uncommited Changes'),我收到一条错误消息,例如'sh:line 1:git:command not found'.

如何让TextMate与Git一起使用?

Joh*_*kin 49

http://theappleblog.com/2008/01/09/textmate-no-longer-a-reason-to-avoid-git/

将textmate首选项中的TM_GIT shell变量设置为git可执行文件,以解决命令未找到的问题.

要查找git二进制文件的路径,请在命令行中键入"which git".当然,确保安装了Git.

  • 看起来对此的解释是在TM`Settings - > Advanced - > Shell Variables`中有一个(无意义的?)默认PATH为"/ usr/bin:/ bin:/ usr/sbin:/ sbin",所以即使你已经要求GitInstaller将git添加到路径中,TextMate也会跳过它: - / (3认同)