15
Manage git branch in Rubichat ThoQ Luong SILILAB Vietnam Hanoi, March 11, 2014 Rubichat

Git branch-in-rubichat

Embed Size (px)

Citation preview

Page 1: Git branch-in-rubichat

Manage git branch in RubichatThoQ Luong

SILILAB VietnamHanoi, March 11, 2014

Rubichat

Page 2: Git branch-in-rubichat

2

Outline

1. Branch classification2. Apply branch model into Rubichat3. FAQ4. Demo5. Reference

Page 3: Git branch-in-rubichat

3

Branch classification

Classify branches into 02 categories: Main branches:

origin/masterorigin/develop

Supporting branches: Feature branches Release branches Hotfix branches

Page 4: Git branch-in-rubichat

4

Feature branches

May branch off from: develop Must merge back into: develop Naming convention: anything except master, develop, release-* or hotfix-*

Should delete after finishing feature development

Page 5: Git branch-in-rubichat

5

Release branches

May branch off from: develop Must merge back into: develop and master Naming convention: release-* Must be tagged into master after merging

Example: change master version from 0.2 0.3 Should delete after finishing feature development

Page 6: Git branch-in-rubichat

6

Hotfix branches

May branch off from: master Must merge back into: develop and master Naming convention: hotfix-* Must be tagged into master after merging

Example: change master version from 0.2.1 0.2.2 Should delete after finishing feature development

Page 7: Git branch-in-rubichat

7

Page 8: Git branch-in-rubichat

8

Apply branch model into Rubichat

Outline rubichat versions: Version: 0.6: rubichat works well in giaybac.com Version: 0.8: rubichat admin, branch off from 0.6 Version: 0.9: rubichat system, branch off from 0.8 Version: 1.0: merge 0.6 and 0.9

Rubiweb will be developed in branch “origin/develop”

Feature upgrade will be developed in a feature branch. Example: move data from Redis to MongoDb

Page 9: Git branch-in-rubichat

9

Smartgit common actions:

Commit Pull Push Switch branch

Page 10: Git branch-in-rubichat

10

Smartgit important actions:

Branch off from a specific branch:

Page 11: Git branch-in-rubichat

11

Smartgit important actions:

Merge branches

Page 12: Git branch-in-rubichat

12

FAQ

1. How to discard a pull that causes my current development progress crash?

Ask developer to reverse his push and re-pull

Page 13: Git branch-in-rubichat

13

Demo:1. Feature branch2. Reverse a merge

Page 14: Git branch-in-rubichat

14

Reference

A successful Git branching model http://nvie.com/posts/a-successful-git-branching-model/ (cited by lots of posts)

Page 15: Git branch-in-rubichat

15

Thank you!