简体   繁体   English

Git状态错误color.ui

[英]Git Status Error color.ui

When I was setting up my SourceTree I met an annoying problem that it kept reminding me the following error: 在设置SourceTree时,遇到一个令人讨厌的问题,它不断提醒我以下错误:

git status fatal: bad numeric config value 'purper' for 'color.ui': invalid unit git status fatal:“ color.ui”的错误数字配置值“ purper”:无效的单位

I'm a programming newbee and don't quite know how git works and how to solve this problem, can anyone give me a hand? 我是编程新手,不完全了解git的工作原理以及如何解决此问题,有人可以帮我吗?

color.ui does not understand the value "purper" (I suppose you mean "purple", but either way, it's not a valid value). color.ui无法理解“ purper”值(我想您是说“ purple”,但无论哪种方式,它都不是有效值)。 The valid values are: 有效值为

false or never if you prefer Git commands not to use color unless enabled explicitly with some other configuration or the --color option; 如果您不希望Git命令不使用颜色,则返回false或从不使用,除非使用其他配置或--color选项显式启用; always if you want all output not intended for machine consumption to use color, [or] true or auto (this is the default since Git 1.8.4) if you want such output to use color when written to the terminal. 如果您希望所有不供机器使用的输出都使用颜色,则始终为true或auto(这是自Git 1.8.4以来的默认设置),如果您希望此类输出在写入终端时使用颜色。

这个命令应该修复它$ git config --global color.ui false

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM