【git】gitbash 推薦配置(中文環境配置等)
阿新 • • 發佈:2019-02-02
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 時 顯示正常中文檔名 ?