cmder中git log 文乱码

news/2024/6/28 23:51:44

2019独角兽企业重金招聘Python工程师标准>>> hot3.png

打开设置; Startup-Environment; 添加 set LANG=zh_CN.UTF-8

 

  1. git status时中文文件名乱码

    现象:

    \344\275\240\345\245\275
    

    执行以下命令即可:

    git config --global core.quotepath false

    quotepath解释:

    The commands that output paths (e.g. ls-files, diff), when not given the -z option,will quote "unusual" characters in the pathname by enclosing the pathname in a double-quote pair and with backslashes the same way strings in C source code are quoted. If this variable is set to false, the bytes higher than 0x80 are not quoted but output as verbatim. Note that double quote, backslash and control characters are always quoted without -z regardless of the setting of this variable.

  2. git log 查看提交中含中文乱码

    现象:

    <E4><BF><AE><E6>
    

    修改git全局配置设置提交和查看日志编码都是utf-8

    git config --global i18n.commitencoding utf-8 
    git config --global i18n.logoutputencoding utf-8

    修改git目录下etc\profile文件,设置less的字符集为utf-8

    export LESSCHARSET=utf-8

    修改cmder目录vendor\init.bat文件,添加以下代码,设定cmder编码为utf-8

    @chcp 65001 > nul

    chcp 65001的解释:

    Why is there no option to choose codepage 65001 (UTF-8) as a default codepage in console window

  3. gitk查看中文乱码

    git config --global gui.encoding utf-8

转载于:https://my.oschina.net/sfshine/blog/1829534


http://www.niftyadmin.cn/n/4585938.html

相关文章

题解 P1434 【滑雪】

题目链接 此题运用功能强大的 ~~暴力搜索~~ 记忆化搜索才是重点&#xff01;&#xff01;&#xff01; 然而&#xff0c;这是一道经典的DP问题 如果我们用$dis[i][j]$来表示坐标为$(i,j)$时的高度 $cnt[i][j]$ 是我们的记忆化数组 在合法的前提下&#xff0c;就有状态转移方程…

加密领域第一季度回顾和市场展望

加密领域第一季度回顾和市场展望 快览&#xff1a; 尽管市场低迷&#xff0c;但加密投资在第一季度仍然非常活跃。在基础设施方面&#xff0c;我们在跨链解决方案和DAO工具中看到了很多的动向。新的 layer-1仍在孵化中。在以太坊上开发的DeFi原语正在扩展到更新的L1&#xff0…

hadoop2-shell操作详解

转载之&#xff1a;https://www.cnblogs.com/870386641drh/p/4262593.html FS Shell调用文件系统(FS)Shell命令应使用 bin/hadoop fs <args>的形式。 所有的的FS shell命令使用URI路径作为参数。URI格式是scheme://authority/path。对HDFS文件系统&#xff0c;scheme是hd…

Android apk程序调用其它的APK程序

Intent mIntent new Intent(); ComponentName comp new ComponentName("启动的APK包名","启动的APK入口类&#xff08;包名加类名&#xff09;"); mIntent.setComponent(comp); mIntent.setAction("android.intent.action.MAIN"); startActivi…

如何使用 Solidity 编写 PayNow 函数?

如何使用 Solidity 编写 PayNow 函数&#xff1f; 介绍 web3经济正在蓬勃发展&#xff0c;学习这项技术的最佳时机就是现在。我们不能错过对web3开发者的全球需求。 区块链开发人员的平均年薪大约是146250美元&#xff0c;这是其他软件开发职业中最高的。 现在对web3开发人员…

红杉、IDG、北极光、顺为等投资大咖怎么看智能硬件

回顾2015年的智能硬件领域创业&#xff0c;谷歌、 Facebook、微软等国际巨头&#xff0c;BAT等国内大佬都争相角逐&#xff0c;智能硬件的上下游产业链及行业生态已经开始形成&#xff0c;巨头们的领跑将开启智能硬件一个新的时代。让我们来看看&#xff0c;智能硬件领域的投资…

Hive配置Kerberos认证

关于 Kerberos 的安装和 HDFS 配置 kerberos 认证&#xff0c;请参考 HDFS配置kerberos认证。 关于 Kerberos 的安装和 YARN 配置 kerberos 认证&#xff0c;请参考 YARN配置kerberos认证。 1. 环境说明 系统环境&#xff1a; 操作系统&#xff1a;CentOs 6.6Hadoop版本&#x…

Linux初级入门百篇-lsof工具

losf工具内容提要1. 熟悉 lsof 的功能2. 掌握 lsof 命令的使用losf的功能和命令格式 在系统管理中常常用到 lsof 工具&#xff0c;是系统监测工具之一。lsof&#xff08;list open files&#xff09;可以用来查看正在运行中的进程…