Another color for root user
Maybe turn path to red by default?
@vitaly-zdanevich it would be better to consider not using the root account with git, but rather to give rights to a user (possibly technical) for the folder where the clone must be carried out. It seems to me a problem to use root for this type of manipulation, it is encouraged to do everything with the root account.
This issue encourages bad practices and should be closed.
For the specific problem raised by this issue, I think a customization of the override_git_prompt_colors() function should do the trick. Here again this justifies closing the issue.
@cClaude For example I have /usr/src/linux with my kernel config - I operate with it under root, and commit/push also.