1,/etc/Gitconfig:[gui] Encoding= utf-8 #code base Unified with Urf-8, in the Git GUI can display Chinese correctly[i18n] commitencoding= GB2312#Log Encoding, window under the default gb2312, declared after the server will not garbled[SVN] pathnameencoding= GB2312#Support Chinese path2,/etc/git-completion.bash:alias ls='ls--show-control-chars--color=auto' #ls can display Chinese correctly3,/ETC/INPUTRC:Set Output-meta on#You can enter Chinese normally in bashSet convert-Meta off4,/etc/profile:Export Lessharset=utf-8 #The $ git log command is not like other VCs, where n log rolls from the bottom to the end, it will properly stop on the first page and press space to page back. This is accomplished by sending the log to less processing. The above is to set the character encoding of less, so that git log can display Chinese correctly.
Git Brash in Windows garbled problem