问题描述
我在Windows上使用 msysgit 1.7.7.1 。使用 git diff
时出现错误。这是什么造成的? msysgit中是否没有diff工具?我应该怎么做?
对于Git Bash,可以通过将以下行添加到〜/ .bashrc中来解决:
<$ p $ p> export TERM = cygwin
- 或 -
pre $
export TERM = msys
第一个似乎是git for windows的原始版本,第二个是一个流行的已知形式,用于治疗。
如果有的话,问题可能会导致其他程序(如 Strawberry Perl )设置 TERM
系统环境变量。
I'm using msysgit 1.7.7.1 on Windows. I get an error when using git diff
. What is causing this? Is there no diff tool included in msysgit? What should I do?
For Git Bash, this can be fixed by adding the following line to ~/.bashrc:
export TERM=cygwin
-or-
export TERM=msys
The first seems to be the original by git for windows, the second a popular known form to "heal" as well.
The problem can be caused if some other program (like for example Strawberry Perl) sets the TERM
system environment variables.
http://code.google.com/p/msysgit/issues/detail?id=184
这篇关于为什么Windows上的git diff警告“终端功能不全”?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!