当前位置:   article > 正文

Git步步进阶---Git dev分支合并到master分支完美实战_git development 分支 合并到 master 分支 再反向同步

git development 分支 合并到 master 分支 再反向同步

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

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/IT小白/article/detail/385549
推荐阅读
相关标签
  

闽ICP备14008679号