Transcript
Page 1: GitFlow, SourceTree and GitLab

GitFlow

SourceTree

GitLab

Shinu Suresh

Page 2: GitFlow, SourceTree and GitLab

QADevelopment

Branches Production

Page 3: GitFlow, SourceTree and GitLab

Main Branches

Develop

master

Page 4: GitFlow, SourceTree and GitLab

Supporting branches

Feature Release Hotfix

Page 5: GitFlow, SourceTree and GitLab

Branch naming

Feature – Anything except master, develop, release-*, hotfix-*

Eg:- Qas, Autosuggest, ScrollableProducts etc

Release – Release-*

Eg:- Release-v1.0.0 (Follow semver), Release-Woody, Release-CheckoutV2 etc

For more information on semver - http://semver.org/

Hotfix – Hotfix-*

Eg:- Hotfix-v1.0.0-PLPIssue, Hotfix-1.0-JIRA-1928 etc

Tag

Eg:- Tag-v1.0.0 (Following semver), Tag-Woody etc

Page 6: GitFlow, SourceTree and GitLab

SourceTree

Atlassian Product

Perfect for Newbies

GitFlow integration

Page 7: GitFlow, SourceTree and GitLab

Configuration

Git User Name

Git Email

Git Private Key

Public key

To be copied over to gitlab

Page 8: GitFlow, SourceTree and GitLab

SourceTree Dashboard

Your

Cloned

Repos

Local

Repo

Branches

Core operations

Local

Repo

HistoryRemote

Repo

Branches

Page 9: GitFlow, SourceTree and GitLab

GitLab

Opensource Git server like GitHub

Activity Stream

File browser

Integrated wiki

Powerful Code review workflow

Issue Management

Code snippets

Web hooks (For CI integrations)

Page 10: GitFlow, SourceTree and GitLab

Dashboard

http://gitlabrepo/

Host Entry

192.168.150.76 gitlabrepo

WCS7-FEP7

project

QAS

Module (Git Module)

Page 11: GitFlow, SourceTree and GitLab

Acivity Stream

Page 12: GitFlow, SourceTree and GitLab

File Browser

Page 13: GitFlow, SourceTree and GitLab

Integrated Wiki

Page 14: GitFlow, SourceTree and GitLab

Merge Requests & Code Review

Merge requests from branches which are cloned

Eg:- Merge request to Template branch from Development team on a security issue fix

Discuss merge requests. Side by side diff is available for review

Suggest/Accept/Reject changes

Once click merge is available from frontend itself if branch is fast-forward

Emails on merge requests and up on completions

Page 15: GitFlow, SourceTree and GitLab

Issues

Release requirements

can be an issue

Discussion threads

Designs can be

discussed over

comments

Milestones can be

added

Page 16: GitFlow, SourceTree and GitLab

Snippets

Page 17: GitFlow, SourceTree and GitLab

Typical Workflow

Clone Project

Create branch with your feature

Write code, Commit changes

Push branch to GitLab

Review code on commit page

Create a merge request

Your team lead will review the code & merge it to the main branch


Top Related