introducing gitflow

13
Introducing GitFlow 20/10/2015 DOAN HONG QUAN

Upload: quan-doan-hong

Post on 13-Feb-2017

177 views

Category:

Software


4 download

TRANSCRIPT

Page 1: Introducing GitFlow

Introducing GitFlow

20/10/2015DOAN HONG QUAN

Page 2: Introducing GitFlow

What Is GitFlow?A branching model for Git

Created by Vincent Driessen

Page 3: Introducing GitFlow

Why using Gitflow?Parallel Development

Collaboration

Support For Emergency Fixes

Page 4: Introducing GitFlow

How It Works

Page 5: Introducing GitFlow

How It Works – Main branches

Page 6: Introducing GitFlow

How It Works – Supporting branches

Feature branches

Release branches

Hotfix branches

Page 7: Introducing GitFlow

Feature branches

Page 8: Introducing GitFlow

Feature branches$ git checkout -b myfeature develop Switched to a new branch "myfeature"$ git checkout develop Switched to branch 'develop’

$ git merge --no-ff myfeatureUpdating ea1b82a..05e9557(Summary of changes)

$ git branch -d myfeature Deleted branch myfeature (was 05e9557).

$ git push origin develop

Page 9: Introducing GitFlow

Feature branches - WIP Pull Request1. Allows commit empty$ git commit --allow-empty

2. Push to origin$ git push origin myfeature

3. Make a pull request

4. Add issue id in the comment whenever commit$ git commit -m "Fix typo in introduction to user guide. Resolves: #1234"

Page 10: Introducing GitFlow

Release branches

Page 11: Introducing GitFlow

Hotfix branches

Page 13: Introducing GitFlow

Thanks you!