git - 使用 console2 时如何启用 msysgit 彩色输出

标签 git msysgit console2 output-formatting

使用 console2 时,我很难在 Windows 上启用 git 彩色输出。

为了欺骗 git,我已经设置了 TERM = 'cygwin'。这在标准 cmd.exe 提示符下启用了颜色,但在 console2 中没有。我已经验证 console2 也可以看到环境变量。

有人知道如何让它工作吗?

最佳答案

好的,哇。解决方案是在 console2 中禁用自定义字体颜色。如果启用,它将覆盖预期的颜色。

在使用 c2 的 alpha 透明度时,我使用自定义颜色为我提供不透明文本。我完全忘记了。

关于git - 使用 console2 时如何启用 msysgit 彩色输出,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2445003/

相关文章:

git filter-tree 和修改子模块

windows - 暂停在 console2 中运行的 bash 中的进程

console2 - 如何在特定文件夹中打开console2?

git - Msysgit bash 在 Windows 7 中非常慢

git - 一个 Git 存储库,两个工作树

git-bash - 设置 git bash 以使用 Windows 上的选项卡

git - 将 Git 索引复制到临时文件夹中

git - 如何备份本地 Git 存储库?

xcode - 如何在 Xcode 中删除未使用的源代码管理主机?

git - 如何在 cmder 中运行 msysgit?