I am trying to set up custom colors for git status, as described here
While using predefined color names works:
[color "status"]
changed = yellow normal
using ANSI 256 color codes does not work:
[color "status"]
changed = "\033[38;5;214m" normal
I get an error:
fatal: bad config line 31 in file .gitconfig
I have tries using hex code, but that does not work either:
[color "status"]
changed = "#d70000" normal
I suspect the #
is interpreted as comment.
My git version is 2.20.1