git shell顯示中文

2021-06-21 22:13:28 字數 681 閱讀 8187

1,/etc/gitconfig:

[gui]

encoding = utf-8 #

**庫統一用urf-8,在git gui中可以正常顯示中文

[i18n]

commitencoding = gb2312 #

log編碼,window下預設gb2312,宣告後發到伺服器才不會亂碼

[svn]

pathnameencoding = gb2312 #

支援中文路徑

2,/etc/git-completion.bash:

alias ls='ls --show-control-chars --color=auto' #

ls能夠正常顯示中文

3,/etc/inputrc:

set output-meta on #

bash中可以正常輸入中文

set convert-meta off

4,/etc/profile:

export lessharset=utf-8 #

$ git log 命令不像其它 vcs 一樣,n 條 log 從頭滾到底,它會恰當地停在第一頁,按 space 鍵再往後翻頁。這是通過將 log 送給 less 處理實現的。以上即是設定 less 的字元編碼,使得 $ git log 可以正常顯示中文。

Git Shell命令大全

git branch 檢視本地所有分支 git status 檢視當前狀態 git commit 提交 git branch a 檢視所有的分支 git branch r 檢視遠端所有分支 git commit am init 提交並且加注釋 git remote add origin git 19...

git shell簡單使用

標籤 gitshell 首先看一下圖.1.remote 遠端倉庫.就是github主頁上顯示的倉庫.2.repository 本地倉庫.先把檔案放到本地倉庫,再可以放到遠端倉庫.3.workspace 工作區.就是本地的資料夾.git資料夾同級目錄的地方,就是工作區.git init 初始化work...

git shell 命令大全

git branch 檢視本地所有分支 git status 檢視當前狀態 git commit 提交 git branch a 檢視所有的分支 git branch r 檢視遠端所有分支 git commit am init 提交並且加注釋 git remote add origin git 19...