赞
踩
aa@aa-PC MINGW64 /f/online-center/cloud/server-functions_services (master)
$ git branch -a #先查看下当前的本地和远程分支
* master
remotes/origin/HEAD -> origin/master
remotes/origin/dev
remotes/origin/master
aa@aa-PC MINGW64 /f/online-center/cloud/server-functions_services (master)
$ git checkout -b my_dev origin/dev #或者是切换到本地的my_dev分支,假如已经存在的话,即git checkout my_dev
Switched to a new branch 'my_dev'
Branch 'my_dev' set up to track remote branch 'dev' from 'origin'.
aa@aa-PC MINGW64 /f/online-center/cloud/server-functions_services (my_dev)
$ git pull #将本地分支my_dev对应的远程分支dev拉下来
remote: Counting objects: 33, done.
rem
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。