ANSI color in git is not displayed correctly

前端 未结 8 1068
一向
一向 2020-12-12 18:00

Recently, I switched to SLES 11. I found a problem for git command. All the ANSI color could not be rendered. Instead, it shows the ANSI code like this:

*ESC

8条回答
  •  情话喂你
    2020-12-12 18:32

    In git, you can change your pager to use the -R option:

    git config --global core.pager "less -R"
    

提交回复
热议问题