Understanding Git-Flow

Understanding Git Flow for(ubuntu-14.04):

what is git flow? Usage? How can it be helpful?

Install git flow using the below command:

sudo apt-get install git-flow

Starting with git flow: To start with git flow, you first need to initialize it inside an existing repository. This is done by using the below command:

git flow init

In-case you want to force re-initialization of git flow, you can use the same command and pass -f as an argument eg: git flow init -f

So far cool, this is dead simple, isn't it? Now let's see what happens once we do a git flow init. We'll have to answer a few questions regarding the naming conventions for our branches. For simplicity it is recommended to use the default values.

$ git flow init -f

Which branch should be used for bringing forth production releases? - develop - feature/lint_cleanup - master Branch name for production releases: [master]

Which branch should be used for integration of the "next release"? - develop - feature/lint_cleanup 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? []

Creating/Deleting a tag:

Deleting a tag:

$ git tag -d

Deepak Gupta

A full time technologist cum foodie. He spends most of the time playing with open source tools and prefers hanging out with friends. Deepak has been a taveller since ages, besides being a hardcore biker and loves doing photogrpahy as hobby.

Bangalore, INDIA http://hellodk.in/