为什么Windows上的git diff警告“终端功能不全”? [英] Why does git diff on Windows warn that the "terminal is not fully functional"?

查看:134
本文介绍了为什么Windows上的git diff警告“终端功能不全”?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在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 系统环境变量。



http://code.google.com/p/msysgit/issues/详细信息?id = 184


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?

WARNING: terminal is not fully functional

解决方案

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警告“终端功能不全”?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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