1、中文亂碼git
git config --global core.quotepath false # 顯示 status 編碼 git config --global gui.encoding utf-8 # 圖形界面編碼 git config --global i18n.commitencoding utf-8 # 提交信息編碼 git config --global i18n.logoutputencoding gbk # 輸出 log 編碼 export LESSCHARSET=utf-8
2、切換到遠程分支ui
若是沒有clone,先clone編碼
git clone ...
查看遠程分支spa
git branch -a
* master
remotes/origin/HEAD -> origin/master
remotes/origin/Release
remotes/origin/mastercode
切換到 origin/Release分支,並在本地新建分支 myReleaseblog
git checkout -b myRelease origin/Release
Branch myRelease set up to track remote branch Release from origin.
Switched to a new branch 'myRelease'rem