1. 程式人生 > >Git 相關

Git 相關

i18n onf rem con com lessc logo spa odi

一、中文亂碼

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

二、切換到遠程分支

如果沒有clone,先clone

git clone ...

查看遠程分支

git branch -a

* master
remotes/origin/HEAD -> origin/master
remotes/origin/Release
remotes/origin/master

切換到 origin/Release分支,並在本地新建分支 myRelease

git checkout -b myRelease origin/Release

Branch myRelease set up to track remote branch Release from origin.
Switched to a new branch ‘myRelease‘

Git 相關