MacOS git flow repo not enabled

Hi,

In attempt to create a new git flow Feature branch in sourcetree, I get the following error 'fatal: Not a gitflow-enabled repo yet. Please run "git flow init" first.'

I am using the embedded Git (version 1.7.11.1). How do I run "git flow init" via the embedded version of Git?

If it helps, here is my .git/config

[core]
        repositoryformatversion = 0
        filemode = true
        bare = false
        logallrefupdates = true
        ignorecase = true
[remote "origin"]
        fetch = +refs/heads/*:refs/remotes/origin/*
        url = http://XXXX.git
[gitflow "branch"]
        master = master
        develop = develop
[gitflow "prefix"]
        feature = feature/
        release = release/
        hotfix = hotfix/
        support = support/
        versiontag = 
[branch "develop"]
        remote = origin
        merge = refs/heads/develop

2 answers

1 accepted

This widget could not be displayed.

I have worked this out now.

The problem was that I had removed the master branch from my local repository, so git flow was presumably looking for it. Upon not finding it, it thought git flow was not initialised.

It would have been good if it gave me a slightly less cryptic message though...

Yes git-flow does rely heavily on your branch names. This is very important. The error message you would've received wouldn't have been from us but would have been from git-flow itself. We can't predict what git-flow reports as this could change at any time.

Glad you've got it working

Yes I'll put this one down to being a git newbie

This widget could not be displayed.

I got this problem when my local master branch where missing.

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Published yesterday in Marketplace Apps

The 7 hacks of highly successful automation

...there's anything I've learnt from working, it's that people are lazy! No offense to anyone reading this, but it's true and we can all admit it. The easier you make something for someone, the more...

130 views 0 9
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you