码迷,mamicode.com
首页 > 其他好文 > 详细

Git 相关

时间:2018-06-11 13:53:18      阅读:144      评论:0      收藏:0      [点我收藏+]

标签:class   charset   output   图形   checkout   odi   ESS   port   logout   

一、中文乱码

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 相关

标签:class   charset   output   图形   checkout   odi   ESS   port   logout   

原文地址:https://www.cnblogs.com/john-h/p/9166381.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!