Set UTF-8 display for Git GUI differences window

别来无恙 提交于 2019-12-03 04:14:11

问题


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?

OS: Windows 7


回答1:


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

# For one repository only
> git config gui.encoding utf-8

Or from the GUI window:

Edit -> Options... -> Default File Contents Encoding -> Change

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.



来源:https://stackoverflow.com/questions/23151339/set-utf-8-display-for-git-gui-differences-window

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!