Git branching

18
Git Branching A simple way to get more productivity Kim Hiếu is an Android & RoR Developer @ Silicon Straits Saigon

description

An awesome git branching practice helps you get more productivity. There are two main branches: master and develop branch. And three supporting branches groups are feature, release, hotfix. It helps you avoid headaches and make you happy when coding. From Tran Kim Hieu - Mobile Evangelist of Silicon Straits Saigon. Connect him: http://www.linkedin.com/in/trankimhieu

Transcript of Git branching

Page 1: Git branching

Git BranchingA simple way to get more productivityKim Hiếu is an Android & RoR Developer @ Silicon Straits Saigon

Page 2: Git branching

Problem

Only use master branch

Page 3: Git branching

Problem

No taggingConflict @ master branchOne task @ a time

Page 4: Git branching

Productivity git branching model

Use two main branch● master

○ stable code○ no build & test error

● develop○ can run code○ sometime can’t pass test

Page 5: Git branching

Productivity git branching model

Three supporting branch group● feature

● release

● hotfix

Page 6: Git branching
Page 7: Git branching

Begin a feature branch

Checkout from develop

Page 8: Git branching

Finish a feature branch

Merge to develop

Page 9: Git branching

Begin a release branch

Checkout from develop

Page 10: Git branching

Finish a release branch

Merge to master

Page 11: Git branching

Finish a release branch

Merge to develop

Page 12: Git branching

Begin a hotfix branch

Checkout from develop

Page 13: Git branching

Finish a hotfix branch

Merge to develop

Page 14: Git branching

Finish a hotfix branch

Merge to develop

Page 15: Git branching

Don’t use fast forward

Page 16: Git branching

Smartgit - A java base git client

Page 17: Git branching

Smartgit support git-flow

Page 18: Git branching

Thanks for attention

Discussion