git status 中文乱码问题

中文 问题 git status 乱码 表示 编程进阶笔记
发布日期 2022-09-25 更新日期 2022-09-25 阅读次数 142 文章字数 313

默认情况下,中文显示为八进制的字符编码

通过将Git配置变量 core.quotepath 设置为false,就可以解决中文文件名称在这些Git命令输出中的显示问题,

        示例:
                $ git config --global core.quotepath false
 
                $ git status -s
注:git status -s 表示精简输出结果(M表示modified,D表示deleted,??表示新增)(但没有commit记录)
 
如果不行,试试把这几个也加上
 
git config --global gui.encoding utf-8
git config --global i18n.commit.encoding utf-8
git config --global i18n.logoutputencoding utf-8
 

文章作者: 朱丰华

文章链接: https://smart.52dixiaowo.com/blog/post-96.html

版权声明: 本博客所有文章除特別声明外,均采用 CC BY 4.0 许可协议。

中文 问题 git status 乱码 表示

发表评论

相关推荐
朱丰华   |   5个月前   |   sql · mysql · 字节 · 字符

mysql常用字段类型详解

156    评论    点赞
朱丰华   |   1年前   |   git

git从缓存中移除数据git rm --cached

538    评论    点赞
朱丰华   |   1年前   |   checkbox

checkbox默认传值问题

513    评论    点赞
朱丰华   |   1年前   |   linux · upx

Linux下安装UPX

686    评论    点赞
朱丰华   |   1年前   |   git

git push -u参数是什么意思?--set-upstream

399    评论    点赞
朱丰华   |   1年前   |   git · hub · 仓库

go克隆并引用github仓库

237    评论    点赞
朱丰华   |   1年前   |   git · add · 文件

git add -A 和 git add . 的区别

161    评论    点赞
朱丰华   |   1年前   |   php

windows下编写、编译php扩展

234    评论    点赞
朱丰华   |   1年前   |   linux · php

linux下编写、编译php扩展

208    评论    点赞
朱丰华   |   1年前   |   html

npm clean-mark,抓取网页文章内容,转换成markdown、html、txt

253    评论    点赞
朱丰华   |   1年前   |   php · 混淆 · obfuscate · git

yakpro-po混淆php代码

172    评论    点赞
朱丰华   |   1年前   |   javascript · js · obfuscator · 混淆

javascript-obfuscator混淆js文件

105    评论    点赞
朱丰华   |   1年前   |   nvm · git · 安装

entos7安装、使用nvm

134    评论    点赞
朱丰华   |   1年前   |   python · linux · www

linux给www用户【非root】安装python3

308    评论    点赞
朱丰华   |   1年前   |   docker · 安装 · linux

centos安装docker

171    评论    点赞
朱丰华   |   1年前   |   php · 编译

ubuntu、centos系统从源码编译指定版本php--超详细

213    评论    点赞
朱丰华   |   1年前   |   php · git · 编译

从源码编译php

187    评论    点赞
朱丰华   |   1年前   |   php · zend · 反射 · api

php zend引擎api接口:ZENDAPI阅读,反射调用示例

192    评论    点赞
朱丰华   |   1年前   |   gcc · 安装 · git

windows下安装gcc

153    评论    点赞
朱丰华   |   2年前   |   php · 混淆 · obfuscate · git

php代码混淆yakpro-po

321    评论    点赞
{{item.author_name}}   |   {{new Date(item.date*1000).log()}}   |   {{it}} ·

{{item.title}}

{{item.uv}}    评论    点赞