git怎么切换分⽀命令_git命令-切换分⽀git⼀般有很多分⽀,我们clone到本地的时候⼀般都是master分⽀,那么如何切换到其他分⽀呢?
1. 查看远程分⽀删除的英文
$ git branch -a
我在mxnet根⽬录下运⾏以上命令:
~/mxnet$ git branch -a
网名2015最新版的女生* masterfring
remotes/origin/HEAD -> origin/master
remotes/origin/master
remotes/origin/nnvm
remotes/origin/piiswrong-patch-1
英语高考>apacerremotes/origin/v0.9rc1
2. 查看本地分⽀
over the moon~/mxnet$ git branch
* master
3. 切换分⽀
$ git checkout -b v0.9rc1 origin/v0.9rc1
Branch v0.9rc1 t up to track remote branch v0.9rc1 from origin.
Switched to a new branch 'v0.9rc1'yeb
#已经切换到v0.9rc1分⽀了
blatant$ git branch
master
* v0.9rc1
cisco是什么
#切换回master分⽀
$ git checkout master
Switched to branch 'master'
Your branch is up-to-date with 'origin/master'.
git 命令合并分⽀代码
git 命令合并分⽀代码 对于复杂的系统,我们可能要开好⼏个分⽀来开发,那么怎样使⽤git合并分⽀呢? 合并步骤:
谷歌词典