[英]How do I get Putty to show color coding on git output?
I am using Putty on Windows 7 to connect to a VirtualBox Debian install, but I am unable to get git commands through Putty to show color coding like Git Bash does on Windows. 我在Windows 7上使用Putty连接到VirtualBox Debian安装,但我无法通过Putty获取git命令来显示Git Bash在Windows上的颜色编码。 I can get (and configure) normal Putty (ANSI?) coloring for things like files and folders, but I am not seeing anywhere how to configure colors for git command output.
我可以为文件和文件夹之类的东西获取(并配置)普通的Putty(ANSI?)着色,但是我没有看到如何为git命令输出配置颜色。
发射:
git config --global color.ui true
Try git config color.ui true
. 试试
git config color.ui true
。 If you can see colored files & folders, it means your terminal settings are correct, so Git must not be configured to display colors. 如果您可以看到彩色文件和文件夹,则表示您的终端设置正确,因此不能将Git配置为显示颜色。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.