git flow workflow code example
Example 1: how to initialised my repository with git flow
how to initialised my repository with git flow
Example 2: git flow hotfix
git flow hotfix start VERSION
git flow hotfix finish VERSION
git push --all --follow-tags
Example 3: git flow feature
git flow feature start feature_name
git flow feature finish feature_name
git push --all
Example 4: git flow release
git flow release start release_version
git flow release finish release_version
git push --all --follow-tags
Example 5: git flow
$ git flow init
Initialized empty Git repository in ~/project/.git/
No branches exist yet. Base branches must be created now.
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? []
$ git branch
* develop
master
Example 6: git workflow
a basic git workflow
1. clone repsitory
2. staging
3. commit
4. push