简体   繁体   中英

"-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:

截屏

I've tried modifying the .gitconfig file but haven't managed to find the parameter to that specific thing. 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 invisible colors

You can fix this by specifying your own colors - eg: Set-PSReadLineOption -Colors @{ 'Number' = "blue"; 'Member' = "DarkGray"} Set-PSReadLineOption -Colors @{ 'Number' = "blue"; 'Member' = "DarkGray"}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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