8
PowerShellと優雅なgitのではありません黄色..なぜ[OK]を
git log --pretty='%C(yellow)%h%Creset %s' --abbrev-commit
は私に黄色コミットIDと白の件名を与えないが、(POSHのgitと)PowerShellで私は何を取得し、このCMDのgit bashの中ので黄色のコミットID(これはデフォルトの白です)。
なぜですか?
PowerShellと優雅なgitのではありません黄色..なぜ[OK]を
git log --pretty='%C(yellow)%h%Creset %s' --abbrev-commit
は私に黄色コミットIDと白の件名を与えないが、(POSHのgitと)PowerShellで私は何を取得し、このCMDのgit bashの中ので黄色のコミットID(これはデフォルトの白です)。
なぜですか?
それは白としてSystem.ConsoleColor.DarkYellow
をレンダリングするのPowerShellのコンソールが判明:、System.ConsoleColor.Yellow
でレンダリングされ、代わりにbold yellow
を使用して
[Enum]::GetValues([ConsoleColor]) | %{ Write-Host $_ -ForegroundColor $_ }
作品:
git log --pretty='%C(bold yellow)%h%Creset %s' --abbrev-commit
Cygwinと color.diff自動 color.statusの自動 color.branch auto color.interactive true –
あなたは小さなリッパーです! –
私はどのようにして太字にするかを恒久的に変更しますか? –