gitbash的推荐配置,解决中文乱码、超长路径名、换行符转换问题
git config --global core.longpaths true # 支持超长路径名
git config --global core.quotepath false # 支持中文路径名
git config --global i18n.logoutputencoding utf-8
git config --global i18n.commitencoding utf-8
git config --global gui.encoding utf-8
git config --global svn.pathnameencoding utf-8
export LESSCHARSET=utf-8 # less分页时正常显示中文
set output-meta on #日志信息可以输入中文
set covert-meta off
git config --global core.savecrlf true #拒绝提交包含混合换行符的文件
git config --global core.autocrlf false # 检出时不自动做换行符转换
alias ls='ls --show-control-chars --color=auto' #ls 时 显示正常中文文件名 ?