Lara Lara - 3 months ago 145
Git Question

Fatal: Not a gitflow-enabled repo yet. Please run 'git flow init' first

I cloned a project and I ran

git checkout -b develop
and then when I run
git flow feature start feature_name

it gives me this error :

Fatal: Not a gitflow-enabled repo yet. Please run 'git flow init' first.


can any one help me ?

Answer

You have to init the git flow on your local repo.

GitFlow are local scripts on your machine and each repository has to have teh metadata (in the config) to use it.

simply run :

# launch the git flow wizard
git flow init


# Use git flow with default values
git flow -d

And you are set to go.