简体   繁体   English

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

[英]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.

相关问题 如何在 Windows git-bash 终端上获得彩色输出? - How do I get colorized output on my windows git-bash terminal? 如何将调用 GIT 的输出转换为批处理脚本中的变量? - How do I get the output from a call to GIT into a variable in a batch script? 如何从Windows上的SBT获取彩色编码控制台输出? - How do I get color coded console output from SBT on Windows? 如何在Windows上将Python请求与Putty SOCKS代理一起使用? - How do I use python Requests with a Putty SOCKS Proxy on Windows? 如何从PuTTY粘贴到Vim 8.0? - How do I paste from PuTTY into Vim 8.0? 如何在Visual Studio 2005的错误列表的“消息”窗格中显示输出? - How do I get output to show up in the Messages pane of the Error List for Visual Studio 2005? 如何在显示所选颜色名称的同时显示用户所选颜色的输出? - How do I display the output of the color the user has selected while displaying the name of the color selected? 如何获取git来停止更改文件中的换行符? - How do I get git to stop changing newlines in my files? 如何在git信息库中获取每个修订的文件清单? - How do I get a file manifest for each revision in a git repository? 如何开始使用 Git 教室与 windows 和 rbenv? - How do I get started with Git Classroom with windows and rbenv?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM