git 如何修复命令控制台中的“警告:终端功能不全”错误?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/11219266/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
how to fix "WARNING: terminal is not fully functional" error in command console?
提问by iCodeLikeImDrunk
I was using hg, now I am converting to Git.
我正在使用 hg,现在我正在转换为 Git。
But after installing it, every time I do "git diff" or "git log", I get this error: WARNING: terminal is not fully functional.
但是安装后,每次我执行“git diff”或“git log”时,都会收到此错误:警告:终端功能不全。
How do I get rid of this?
我该如何摆脱这个?
回答by paulsm4
Q: How are you connecting to Git?
问:你是如何连接到 Git 的?
For example, if you're using Cygwin on Windows, try this:
例如,如果您在 Windows 上使用 Cygwin,请尝试以下操作:
TERM=msys
If you're on Linux (or connecting to a Linux server via putty), then try this:
如果您使用的是 Linux(或通过 putty 连接到 Linux 服务器),请尝试以下操作:
export TERM=msys
If you're running from a Windows command prompt:
如果您从 Windows 命令提示符运行:
<Rclick>Computer, Properties,
[Advanced System Settings], [Advanced], [Environment Variables]
Create a new System variable "TERM", value "msys"
回答by Clay
In case someone gets this using Git Extensions, check the setting for Path to linux tools...
. Mine was set to C:\cygwin
. Changing it to C:\Program Files (x86)\Git\bin\
fixed it for me.
如果有人使用 Git Extensions 获取此信息,请检查Path to linux tools...
. 我的设置为C:\cygwin
. 改变它C:\Program Files (x86)\Git\bin\
为我修复它。