20
GIT & Branching Model Author: TU Tran Skype: tranthanhtu83 Email: [email protected] Blog: http://tranthanhtu.vn

Fullstack - Requiste - GIT & SourceTree

  • Upload
    tu-tran

  • View
    164

  • Download
    2

Embed Size (px)

Citation preview

Page 1: Fullstack - Requiste - GIT & SourceTree

GIT

&

Branching ModelAuthor:

TU TranSkype: tranthanhtu83

Email: [email protected]

Blog: http://tranthanhtu.vn

Page 2: Fullstack - Requiste - GIT & SourceTree

- Overview about GIT- Perform basic action on GIT (window)- Perform basic action on SourceTree- Branching Model

Scope

TU Tran(skype: tranthanhtu83, mail: [email protected])

Page 3: Fullstack - Requiste - GIT & SourceTree

- GIT: https://git-scm.com/- GIT UI on Window : https://tortoisegit.org/- SourceTree: https://www.sourcetreeapp.com/- Reference:

http://www.tranthanhtu.vn/post/2017/01/11/git-branching-model

Resource

TU Tran(skype: tranthanhtu83, mail: [email protected])

Page 4: Fullstack - Requiste - GIT & SourceTree

Overview

DVCS vs CVCS

GIT

SourceTree

Branching Model

Agenda

TU Tran(skype: tranthanhtu83, mail: [email protected])

Page 5: Fullstack - Requiste - GIT & SourceTree

Overview

TU Tran(skype: tranthanhtu83, mail: [email protected])

Page 6: Fullstack - Requiste - GIT & SourceTree

DVCS: Distributed Version Control SystemExample: Git, Mercurial

CVCS: Centralized Version Control SystemExample: CVS, Perforce, SVN

DVCS vs CVCS

TU Tran(skype: tranthanhtu83, mail: [email protected])

Page 7: Fullstack - Requiste - GIT & SourceTree

CVCS: Centralized version control system

TU Tran(skype: tranthanhtu83, mail: [email protected])

Page 8: Fullstack - Requiste - GIT & SourceTree

DVCS: Distributed version control system

TU Tran(skype: tranthanhtu83, mail: [email protected])

Page 9: Fullstack - Requiste - GIT & SourceTree

- Install GIT on local- Checkout code from remote- Create + push Branch- Merge Branch- Resolve Conflict- Ignore files

GIT

TU Tran(skype: tranthanhtu83, mail: [email protected])

Page 10: Fullstack - Requiste - GIT & SourceTree

- Install GIT on local- Checkout code from remote- Create + push Branch- Merge Branch- Resolve Conflict

SourceTree

TU Tran(skype: tranthanhtu83, mail: [email protected])

Page 11: Fullstack - Requiste - GIT & SourceTree

Branching Model

TU Tran(skype: tranthanhtu83, mail: [email protected])

Page 12: Fullstack - Requiste - GIT & SourceTree

- Feature branch- Release branch- Tagging- Hotfix

Branching Model

TU Tran(skype: tranthanhtu83, mail: [email protected])

Page 13: Fullstack - Requiste - GIT & SourceTree

Branching Model/ Overview

TU Tran(skype: tranthanhtu83, mail: [email protected])

Page 14: Fullstack - Requiste - GIT & SourceTree

- Scenario: - Develop should not impact to others during implementing their

tasks/ features- Solution:

- Create new branch from develop- Implement your feature there- Merge back to develop when completed

Branching Model/ Feature branch

TU Tran(skype: tranthanhtu83, mail: [email protected])

Page 15: Fullstack - Requiste - GIT & SourceTree

- Scenario: - Completed features need to be tested before delivering to

customer- Other develops can continue on other features in parallel

- Solution:- Create new branch from develop- Test your complemented features and fix bugs- Merge to master, develop branches when ready for new release

Branching Model/ Release branch

TU Tran(skype: tranthanhtu83, mail: [email protected])

Page 16: Fullstack - Requiste - GIT & SourceTree

- Scenario: - We found bugs on production need to be fixed SAP

- Solution:- Create new branch from master- Fix bugs and re-test on staging- Merge to master, develop branches

Branching Model/ Hotfix branch

TU Tran(skype: tranthanhtu83, mail: [email protected])

Page 17: Fullstack - Requiste - GIT & SourceTree

- Scenario: - We need to maintain code of each version at the same time

- Solution:- Create new tag when release new version to customer

Branching Model/ Tagging

TU Tran(skype: tranthanhtu83, mail: [email protected])

Page 18: Fullstack - Requiste - GIT & SourceTree

Branching Model/ Review

TU Tran(skype: tranthanhtu83, mail: [email protected])

Page 19: Fullstack - Requiste - GIT & SourceTree

Q&ATU Tran(skype: tranthanhtu83, mail: [email protected])

Page 20: Fullstack - Requiste - GIT & SourceTree

Thank For Watching

TU Tran(skype: tranthanhtu83, mail: [email protected])