码迷,mamicode.com
首页 > 其他好文 > 详细

git切换到指定远程分支

时间:2020-05-26 01:18:24      阅读:100      评论:0      收藏:0      [点我收藏+]

标签:git   sdn   details   span   包括   color   rem   ase   ref   

使用git进行开发的时候经常会遇到需要切换远程分支并且提交到远程指定分支的情况,现在记录下操作

查看远程所有分支

git branch -a

git branch不带参数,列出本地已经存在的分支,并且在当前分支的前面用*标记,加上-a参数可以查看所有分支列表,包括本地和远程,远程分支一般会用红色字体标记出来

* dev
 master
 remotes/origin/HEAD -> origin/master
 remotes/origin/master
 remotes/origin/release/caigou_v1.0

 

参考:https://blog.csdn.net/astonishqft/article/details/83029490

          https://www.cnblogs.com/xuzimian/p/10748522.html

git切换到指定远程分支

标签:git   sdn   details   span   包括   color   rem   ase   ref   

原文地址:https://www.cnblogs.com/yizhilin/p/12961782.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!