XMYY-19deiMac:OPenHAB_app_IOS xmyy-19$ git branch -a(查看遠(yuǎn)程分支)
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