git分支切换

XMYY-19deiMac:OPenHAB_app_IOS xmyy-19$ git branch -a(查看远程分支)
  Develop
* 娱乐室演示版
  remotes/origin/1.0UI版本
  remotes/origin/DebugV0.1
  remotes/origin/DebugV_1.0
  remotes/origin/Develop
  remotes/origin/HEAD -> origin/Develop
  remotes/origin/master
  remotes/origin/shantou302
  remotes/origin/娱乐室演示版
  remotes/origin/演示通过版
XMYY-19deiMac:OPenHAB_app_IOS xmyy-19$ git branch(查看本地分支)
  Develop
* 娱乐室演示版
XMYY-19deiMac:OPenHAB_app_IOS xmyy-19$ git checkout -b v0.9rc1 origin/v0.9rc1(切换分支)

分支切换

切换到master

git checkout master

或者develop 分支

git checkout develop

参考:http://blog.csdn.net/small_rice_/article/details/45095323

20150417185133792.png

image

你可能感兴趣的:(git分支切换)