git切换分支

来源:互联网 发布:网络技术培训 北京 编辑:程序博客网 时间:2024/06/05 16:11


hexy@hexy-PC MINGW64 /d/c3_git/emis/emis (master)
$ git branch
* master


hexy@hexy-PC MINGW64 /d/c3_git/emis/emis (master)
$ git pull
Password authentication
Password:
Already up-to-date.


hexy@hexy-PC MINGW64 /d/c3_git/emis/emis (master)
$ git remote -v
origin  ssh://hxy@106.14.26.248:29418/emis.git (fetch)
origin  ssh://hxy@106.14.26.248:29418/emis.git (push)


hexy@hexy-PC MINGW64 /d/c3_git/emis/emis (master)
$ git branch -r
  origin/HEAD -> origin/master
  origin/emis2.0
  origin/master


hexy@hexy-PC MINGW64 /d/c3_git/emis/emis (master)
$ git checkout emis2.0
Checking out files: 100% (2064/2064), done.
Switched to a new branch 'emis2.0'
Branch emis2.0 set up to track remote branch emis2.0 from origin.


hexy@hexy-PC MINGW64 /d/c3_git/emis/emis (emis2.0)
$ git branch
* emis2.0
  master


hexy@hexy-PC MINGW64 /d/c3_git/emis/emis (emis2.0)
$