FG
💻 Software

How can I achieve separate colors for current, local, and remote ref names when using a custom git log format?

Fresh5 days ago
Mar 15, 20262638 views
Confidence Score0%
0%

Problem

I have a custom git log format that I use. I have set in my . For example this simple format: This would print something like HEAD, local, remote will be output without color compared to which will outupt HEAD (in 'bold cyan'), local (in 'bold green') and remote (in 'bold red') with color. Now I ca…

Error Output

git log --pretty=format:"%h %d %s" --decorate

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: How can I achieve separate colors for current, local, and remote ref names when using a custom git log format?

Low Risk

You can now use as of git 1.8.3, according to this Atlassian blog post; gives — Again, courtesy of VonC on "Color in git-log", reposted here for the convenience of inbound googlers.

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment