gitlab之source tree使用方法

一、简介

  1、source tree 是什么

  可视化项目版本控制软件,使用git项目管理,支持windows/mac

  客户端使用source tree开发源码,图形化提交到gitlab

二、使用source tree开发提交到gitlab

  1、克隆代码

  需要填写ssh地址或http地址

  本地路径

  类型会自动识别

    识别失败会显示这不是一个标准的git仓库,可能的原因有

      地址错误

      访问权限

      

    

gitlab之source tree使用方法_第1张图片

 

  2、克隆完成后,得到了master源码

  如果想获取最新的源码,需要对项目初始化,可以点击工作流

 

gitlab之source tree使用方法_第2张图片

 

  3、创建一个分支

gitlab之source tree使用方法_第3张图片

  4、开发代码

gitlab之source tree使用方法_第4张图片

 

gitlab之source tree使用方法_第5张图片

  勾选自动到缓存区

gitlab之source tree使用方法_第6张图片

  提交到本地仓库

gitlab之source tree使用方法_第7张图片

  

  添加close注释

gitlab之source tree使用方法_第8张图片

  修改默认用户

gitlab之source tree使用方法_第9张图片

  

  可以进行回滚

 

gitlab之source tree使用方法_第10张图片

 

  4、推送分支到gitlab

gitlab之source tree使用方法_第11张图片

 

gitlab之source tree使用方法_第12张图片

三、gitlab 进行merge操作及打标签上线

  1、合并(merge)

 

 

 gitlab之source tree使用方法_第13张图片

  

 

  登陆gitlab创建merge合并到主干

 

  可以看到分支了

gitlab之source tree使用方法_第14张图片

  多个分支可以继续merge

  

gitlab之source tree使用方法_第15张图片

 

 

 

gitlab之source tree使用方法_第16张图片

 

    全部合并完成

 

gitlab之source tree使用方法_第17张图片

  2、开发完成后上线打标签

 

gitlab之source tree使用方法_第18张图片

 

 

gitlab之source tree使用方法_第19张图片

  开发完成都已经合并到主干上了,分支可以删除了

gitlab之source tree使用方法_第20张图片

 

 

gitlab之source tree使用方法_第21张图片

 

 

转载请注明出处:https://www.cnblogs.com/zhangxingeng/p/10882849.html 

你可能感兴趣的:(gitlab之source tree使用方法)