Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

git

github

gitlab

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?

like image 368
Melek Yilmaz Avatar asked Apr 25 '16 14:04

Melek Yilmaz


People also ask

Why is Git flow not working on my System?

If anybody runs git flow init and it doesn't work resulting in an error like this, git flow is simply not installed on your system. git: 'flow' is not a git command. See 'git --help'.

How to set up gitflow?

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. And you are set to go. Show activity on this post. I had a different situation.

What does fatal not a git repository mean?

What does “fatal: not a git repository” mean? fatal: not a git repository (or any of the parent directories): .git. This error means you attempted to run a Git command, but weren’t inside a Git repository. Make sure you’ve:

Why am I getting Git flow init error on Sourcetree?

If you're using SourceTree version 4.0 on MacOS (Sep 2019 is the last release at the time of this post) you may still run into the same error even after running the git flow init command. This can happen if you rename any branches (for example, devel instead of develop).


2 Answers

I got it working by doing the steps mentioned by jpfl @ answers.atlassian.com:

Although this is an old post, just wanted to add to this since I've gotten stuck on this same error. Was able to resolve by doing the following:

  1. Open the .git\config file OR Repository -> Repository Settings -> Remotes -> Edit Config File (Sourcetree 2.7.6)
  2. Remove all the [gitflow * entries and save the file
  3. Close and re-open SourceTree
  4. In the main menu, go to Repository > Git Flow > Initialise Repository (should be enabled now)
like image 59
Anima-t3d Avatar answered Oct 18 '22 22:10

Anima-t3d


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.

like image 25
CodeWizard Avatar answered Oct 18 '22 22:10

CodeWizard