ANSI color in git is not displayed correctly

前端 未结 8 1051
一向
一向 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:22

    Whoever ever winds up here, in my case it was solved by setting core.pager to an empty string, instead of unsetting it:

    git config --global core.pager ''
    

    This was from https://git-scm.com/book/en/v2/Customizing-Git-Git-Configuration

提交回复
热议问题