为Git GUI差异窗口设置UTF-8显示

Pau*_*aul 32 git diff utf-8 git-diff git-gui

我不记得我是如何使Git GUI正确显示UTF-8编码差异的.我也找不到搜索引擎中的指南.

现在我需要在新的工作场所这样做.你能写出指示吗?

操作系统:Windows 7

小智 56

# Global setting for all you repositories
> git config --global gui.encoding utf-8

# For one repository only
> git config gui.encoding utf-8
Run Code Online (Sandbox Code Playgroud)

或者从GUI窗口:

编辑 - >选项... - >默认文件内容编码 - >更改

并选择"Unicode(UTF-8)"

在Options中,您将看到有两个面板,右侧的面板用于所有存储库,左侧面板用于本地存储库.