解决Windows下Git Bash中文显示为乱码问题

  1. ls显示的是乱码

问题截图

《解决Windows下Git Bash中文显示为乱码问题》

解决方法

  • 首先右键点击git bash窗口,选择Options

    《解决Windows下Git Bash中文显示为乱码问题》

  • 选择Text选项,将Locale和Character set设置为如图所示,点击save就可以了

    《解决Windows下Git Bash中文显示为乱码问题》

  • 最后效果

    《解决Windows下Git Bash中文显示为乱码问题》

  1. git 命令下中文显示乱码

问题截图

《解决Windows下Git Bash中文显示为乱码问题》

解决方法

  • 很简单一行命令就搞定了

    git config --global core.quotepath false
    

《解决Windows下Git Bash中文显示为乱码问题》 git status

《解决Windows下Git Bash中文显示为乱码问题》 git log

    原文作者:whisshe
    原文地址: https://www.jianshu.com/p/c72cc70d3955
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞