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?
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'.
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? 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:
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).
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:
- Open the .git\config file OR Repository -> Repository Settings -> Remotes -> Edit Config File (Sourcetree 2.7.6)
- Remove all the [gitflow * entries and save the file
- Close and re-open SourceTree
- In the main menu, go to Repository > Git Flow > Initialise Repository (should be enabled now)
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With