It turns out the PowerShell console displays System.ConsoleColor.DarkYellow as white:
[Enum]::GetValues([ConsoleColor]) | %{ Write-Host $_ -ForegroundColor $_ }
Using bold yellow instead, which does using System.ConsoleColor.Yellow , works:
git log --pretty='%C(bold yellow)%h%Creset %s' --abbrev-commit
dahlbyk
source share