Git colors don't display in Windows command prompt

后端 未结 3 818
离开以前
离开以前 2021-01-19 10:39

I assume that it\'s because of the color setting in my config file, but I\'ve tried changing that to no avail. Maybe I\'m not doing that right?

Notice that Git Bash

3条回答
  •  滥情空心
    2021-01-19 10:56

    I'm seeing the exact same problem, only for some command prompts. (By default it works, but when I run my team's "razzle" customization script the output is broken like your screenshot. Oddly, coloring in git log and status works fine; just branch is broken.)

    I created a new shortcut that launched the same customization script, and the output is fixed for my new shortcut. Very weird.


    If you run git branch --no-color you see the right output, just without color?

    You can run git config --local --add color.branch never to set that as the default for this repo.

提交回复
热议问题