Skip to content

Instantly share code, notes, and snippets.

@mamboer
Created March 18, 2014 06:52
Show Gist options
  • Save mamboer/9614823 to your computer and use it in GitHub Desktop.
Save mamboer/9614823 to your computer and use it in GitHub Desktop.
git bash ls命令显示中文乱码的解决办法
git bash ls命令显示中文乱码,
1,在根目录下c:\Users\xxx 下面新建一个.bashrc文件和.bash_aliases文件
2,打开bashrc文件里面加入~/.bash_aliases
3,在bash_aliases文件中加入alias ls='ls --show-control-chars --color=auto'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment