gitgithubgitlab

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


I cloned a project and ran git checkout -b develop. When I run git flow feature start feature_name it gives me the following error:

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

can any one help me?


Solution

  • 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 init -d
    

    And you are set to go.