如何让Putty在git输出上显示颜色编码?

Dav*_*cus 10 windows git putty colors

我在Windows 7上使用Putty连接到VirtualBox Debian安装,但我无法通过Putty获取git命令来显示Git Bash在Windows上的颜色编码.我可以为文件和文件夹之类的东西获取(并配置)普通的Putty(ANSI?)着色,但是我没有看到如何为git命令输出配置颜色.

oua*_*uah 17

发射:

git config --global color.ui true
Run Code Online (Sandbox Code Playgroud)


Eth*_*own 1

尝试git config color.ui true。如果您可以看到彩色文件和文件夹,则表明您的终端设置正确,因此不得将 Git 配置为显示颜色。