Questions tagged «posh-git»

5
在Posh-Git中更改“ git status”输出颜色
在Posh-Git中,当我在存储库中运行“ git status”时,当我尝试将它们配置为“正常”红色时,更改和未跟踪文件的颜色为深红色。我要这样做是因为我的控制台背景很暗,所以很难读懂深红色。 我四处搜寻,似乎需要进行两个配置更改: 在$ GitPromptSettings中将“ WorkingForegroundColor”和“ UntrackedForegroundColor”从“ DarkRed”更改为“ Red”。 在git config中将“ color.status.changed”和“ color.status.untracked”更改为红色。 根据我的阅读,这就是我所需要做的,但是“ git status”的结果仍然是深红色。 这是一个摘要,以证明我按照我的要求进行设置,也许有人可以发现错误:
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.