You can enable color output by setting the git config color.ui to true . The following should work.
git config --global color.ui true
You can then define aliases that add color using the --pretty=format:".." option. But I do not think that there are any individual correspondences. I assume that this is what you need in order to color something like an error identifier. You can, however, divulge commit elements such as hashes, author, branch, etc.
source share