Search code examples
gitcolorsgit-diff

Hex codes of Git standard colors


I have been searching for a while but I can't find it. What are the Hex codes of Git standard colors: normal, black, red, green, yellow, blue, magenta, cyan, white and default?


Solution

  • Git uses ANSI color escape codes. Git maps the color names to escape codes in the file color.h.

    The actual visible, rendered color depends on your terminal emulator and other contributing factors such as the configured color scheme.