github 中文處理情況記錄

中文文件名
支持utf8格式較好,gbk格式可以上傳,可以下載,但是在github網站上無法顯示,無法預覽

文件內容中有中文
utf8可以正常在github網站上顯示,gbk格式如果內容比較少,顯示不正常,如果內容比較多,也可以正常顯示

註釋有中文
utf8和gbk都可以正常工作

git version 2.1.4

git config -l 內容(部分)
push.default=simple
user.name=xxxx
[email protected]
core.quotepath=false
i18n.commitencoding=gbk
credential.helper=store
core.repositoryformatversion=0
core.filemode=true
core.bare=false
core.logallrefupdates=true
remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*
remote.origin.url=https://github.com/xxxx/xxxx.xxx
branch.master.remote=origin
branch.master.merge=refs/heads/master
credential.helper=store
i18n.commitencoding=utf-8
i18n.logoutputencoding=gbk
 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章