git diff shows unicode symbols in angle brackets

后端 未结 5 1433
情话喂你
情话喂你 2020-12-14 02:39

I have a file with unicode symbols (russian text). When I fix some typo I use git diff --color-words=. to see the changes I\'ve done.

In case of unicode

5条回答
  •  不知归路
    2020-12-14 03:07

    For me best solution to this is setting export LESSCHARSET=utf-8.

    In this case both git log -p and git diff shows unicode without problems.

提交回复
热议问题