使用 GIT 时,Android Studio 终端颜色会发生变化.无法读取输出 [英] Android Studio Terminal Color is changing while using GIT. Unable to Read output
问题描述
我在 Android Studio 终端中使用 GIT.
当我输入 git log
时,背景颜色发生变化,我无法阅读文本.
请在 Android Studio 中查看以下输出.
I am using GIT in Android Studio Terminal.
When I type git log
the background color changes and I am unable to read text.
Please see below output in Android Studio.
但是,当我在 Normal Git.exe 中运行相同的命令时,颜色显示正确.
请仅从 git.exe 中查看图像
However, when I run the same command in Normal Git.exe then the colors are showing properly.
Please see image from only git.exe
我尝试更改 Android Studio 中的几乎所有设置,阅读了有关此的所有文章,但仍然找不到任何解决方案.
请指导.
I tried to change almost all settings in Android Studio, read all articles around this, but still could not find any solution.
Please guide.
推荐答案
这不是 Android Studio,而是 git 进行着色.有许多选项可以设置 git 输出的颜色.喜欢为所有内容设置不着色:
This is not Android Studio but git doing the coloring. There are a number of options to set the coloring of the git output. Like set no coloring for everything:
git config --global color.ui never
我对 Android Studio 的体验是,并非所有与颜色相关的设置都有效.此处提供有关 git 配置的更多信息:
My experience with Android Studio is, however that not all color related settings work. More info about git configuration from here:
http://git-scm.com/book/en/Customizing-Git-Git-Configuration
这篇关于使用 GIT 时,Android Studio 终端颜色会发生变化.无法读取输出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!