Ok, so in git bash this cmd..
git log --pretty='%C(yellow)%h%Creset %s' --abbrev-commit
gives me a yellow commit id and white subject line, but in powershell (with posh git) I get no yellow commit id (it’s the default white).
Why ?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It turns out PowerShell’s console renders
System.ConsoleColor.DarkYellowas white:Using
bold yellowinstead, which renders withSystem.ConsoleColor.Yellow, works: