为Git GUI差异窗口设置UTF-8显示 [英] Set UTF-8 display for Git GUI differences window
本文介绍了为Git GUI差异窗口设置UTF-8显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我不记得我是如何使Git GUI正确显示UTF-8编码的差异的.另外,我在搜索引擎中找不到该指南.
I can't remember how I made Git GUI to display UTF-8 encoded differences correctly. Also I can't find the guide in search engines.
现在我需要在新的工作场所执行此操作.你能写下说明吗?
Now I need to do this at new workplace. Could you write down instructions?
操作系统:Windows 7
OS: Windows 7
推荐答案
# Global setting for all you repositories
> git config --global gui.encoding utf-8
# For one repository only
> git config gui.encoding utf-8
或在GUI窗口中:
编辑->选项...->默认文件内容编码->更改
Edit -> Options... -> Default File Contents Encoding -> Change
并选择"Unicode(UTF-8)"
and select "Unicode (UTF-8)"
在选项"中,您将看到有两个面板,右侧的面板用于所有存储库,左侧的面板用于本地存储库.
In the Options, you'll see that there are two panel, the one on the right is for all repositories, the one on the left for the local repository.
这篇关于为Git GUI差异窗口设置UTF-8显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文