解决中文编码:

git config --global core.quotepath false

git config --global gui.encoding utf-8

 

解决git log 中文乱码:

git config --global i18n.commitencoding utf-8

git config --global i18n.logoutputencoding utf-8

export LESSCHARSET=utf-8

 

解决自动换行:

git config --global core.autocrlf false

 

以下是简短说明:

git config --global core.quotepath false

cygwin中,git add时,显示274\232\350\256\256\346\200\273\347\273\223.png的乱码。

git config --global gui.encoding utf-8

git gui的界面编码

 

 

git config --global i18n.commitencoding utf-8

 commit log 提交时使用 utf-8 编码,可避免服务器上乱码,同时与linux上的提交保持一致!

 

lls --show-control-chars

MsysGit自带的bash,使用ls命令查看,中文文件名乱码。

 

git config --global core.autocrlf false

windows使用git时出现 warning LF will be replaced by CRLF

 

 

 

 

 

 

 

 

 

posted on 2018-09-02 10:00  DMC-尼禄  阅读(176)  评论(0编辑  收藏  举报