一、简介

  1、source tree 是什么

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

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

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

  1、克隆代码

  需要填写ssh地址或http地址

  本地路径

  类型会自动识别

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

      地址错误

      访问权限

      

    

gitlab之source tree使用方法

 

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

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

 

gitlab之source tree使用方法

 

  3、创建一个分支

gitlab之source tree使用方法

  4、开发代码

gitlab之source tree使用方法

 

gitlab之source tree使用方法

  勾选自动到缓存区

gitlab之source tree使用方法

  提交到本地仓库

gitlab之source tree使用方法

  

  添加close注释

gitlab之source tree使用方法

  修改默认用户

gitlab之source tree使用方法

  

  可以进行回滚

 

gitlab之source tree使用方法

 

  4、推送分支到gitlab

gitlab之source tree使用方法

 

gitlab之source tree使用方法

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

  1、合并(merge)

 

 

 gitlab之source tree使用方法

  

 

  登陆gitlab创建merge合并到主干

 

  可以看到分支了

gitlab之source tree使用方法

  多个分支可以继续merge

  

gitlab之source tree使用方法

 

 

 

gitlab之source tree使用方法

 

    全部合并完成

 

gitlab之source tree使用方法

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

 

gitlab之source tree使用方法

 

 

gitlab之source tree使用方法

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

gitlab之source tree使用方法

 

 

gitlab之source tree使用方法

 

 

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

相关文章: