git 初始化 中文編碼、自動換行
解決中文編碼:
git config --global core.quotepath false
git config --global gui.encoding utf-8
git config --global i18n.commitencoding utf-8
git config --global i18n.logoutputencoding gbk
lls --show-control-chars
解決自動換行:
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上的提交保持一致!
git config --global i18n.logoutputencoding gbk
git log 時將 utf-8 編碼轉換成
lls --show-control-chars
MsysGit自帶的bash,使用ls命令查看,中文文件名亂碼。
git config --global core.autocrlf false
windows使用git時出現 warning LF will be replaced by CRLF
git 初始化 中文編碼、自動換行