Using Git Flow based on Github

Using Git Flow based on Github
1. Install git-flow
>sudo port install git-flow

2. First configuration
>git flow init
>git flow init
Which branch should be used for bringing forth production releases?
   - master
Branch name for production releases: [master]
Branch name for "next release" development: [develop]

How to name your supporting branch prefixes?
Feature branches? [feature/]
Release branches? [release/]
Hotfix branches? [hotfix/]
Support branches? [support/]
Version tag prefix? []

Small features.
>git flow feature start rest-read-api

Or

>git checkout -b feature/rest-read-api develop

>git flow feature finish rest-read-api

Or

>git checkout develop
>git merge --no-ff rest-read-api - merges the branch to develop
>git branch -d rest-read-api - delete the local branch
>git push origin develop - push develop

Release branch
>git flow release start v1.0


References:
http://jeffkreeftmeijer.com/2010/why-arent-you-using-git-flow/
https://github.com/nvie/gitflow/wiki/Mac-OS-X
http://www.slideshare.net/shuky.dvir/git-workflow-with-gitflow

你可能感兴趣的:(github)