简体   繁体   English

在 Windows 终端中使用 Git 时“-m”不可见

[英]"-m" not visible when using Git in Windows Terminal

I'm using Windows Terminal and I'm having trouble with Git, when I type -m it's invisible:我正在使用 Windows 终端,我在使用 Git 时遇到问题,当我输入-m时它是不可见的:

截屏

I've tried modifying the .gitconfig file but haven't managed to find the parameter to that specific thing.我已经尝试修改.gitconfig文件,但没有设法找到该特定事物的参数。 How can I change it?我怎样才能改变它?

This looks like a PowerShell theme issue - check the output of Get-PSReadLineOption - if you see any invisible colors:这看起来像 PowerShell 主题问题 - 检查Get-PSReadLineOption - 如果您看到任何不可见的 colors:

PowerShell invisible colors PowerShell 隐形 colors

You can fix this by specifying your own colors - eg: Set-PSReadLineOption -Colors @{ 'Number' = "blue"; 'Member' = "DarkGray"}您可以通过指定自己的 colors 来解决此问题 - 例如: Set-PSReadLineOption -Colors @{ 'Number' = "blue"; 'Member' = "DarkGray"} Set-PSReadLineOption -Colors @{ 'Number' = "blue"; 'Member' = "DarkGray"}

暂无
暂无

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

相关问题 使用cout将C ++输出到Windows终端&lt; <term_cc<color, default, attrib> 在Windows上正确输出颜色和属性,但在Linux上不正确 - C++ output to windows terminal using cout<<term_cc<color, default, attrib> outputs colors and attributes properly on Windows but not on Linux 使用git branch -a时隐藏或折叠以prefix /开头的分支 - Hide or collapse branches beginning with prefix/ when using git branch -a 如何在不使用ncurses的情况下在linux终端上设置终端背景颜色? - How to set terminal background color on linux terminal without using ncurses? 如何在 Windows 10 中启用 VT100 终端仿真? - How to enable VT100 terminal emulation in windows 10? cygwin终端颜色在摇摆时会褪色 - cygwin terminal colors fade when sshing Python 文本颜色在 CMD 中不起作用,但在 Windows 终端中起作用 - Python text color is not working in CMD but it is working in Windows Terminal 如何在代码后面和不可见时为数据网格单元格着色 - How to colour a datagrid cell in code behind and when it is not visible 在终端模式下运行时如何更改迷你缓冲区中文本的外观? - How to change the face of the text in the minibuffer when running in terminal mode? 是否可以使用 rgb 或十六进制颜色在终端中为 java 输出着色? - is it possible to color java output in terminal using rgb or hex colors? 使用 python 从终端获取当前默认文本颜色 - Get current default text color from terminal using python
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM