Git分支管理

添加分支

git branch

git branch test1.0

切换分支

git checkout

git checkout test1.0

添加分支并切换

git checkout -b

git checkout -b test1.0

查看所有分支

git branch

$ git branch
* master
  test1.0

删除分支

git branch -d

git branch -d test1.0

合并分支

合并到主干。

git merge

git merge test1.0

提交分支

git push origin

git push origin test1.0

查看分支差异

git diff

git diff master test1.0

推荐阅读

干货:2TB架构师四阶段视频教程

面经:史上最全Java多线程面试题及答案

面经:史上最全阿里高级Java面试题

面经:史上最全Spring面试题

教程:最全Spring Boot全套视频教程

书籍:进阶Java架构师必看的15本书

工具:推荐一款在线创作流程图、思维导图软件

分享Java干货,高并发编程,热门技术教程,微服务及分布式技术,架构设计,区块链技术,人工智能,大数据,Java面试题,以及前沿热门资讯等。

posted @ 2018-01-25 09:35  栈长  阅读(83)  评论(0编辑  收藏  举报