Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Setup Git Flow on an empty repository

Steve Ottoz
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 8, 2013

Hi there

I tried to setup Git Flow on an empty repository and got an error message. The suggestion to create a new branch '{0}' also throws an error.

I think this is something you changed in an update, because before it worked perfectly.

I read somewhere, that this has been changed to prevent some errors.

I prefer to setup Git Flow on an empty repository and start working on the develop branch, because I don't want to commit to the master branch, before the project is ready for production.

The way it is now, I have to commit to the master branch, then setup Git Flow, which creates the develop branch based on the master and then work on the develop branch. So I have a master branch with an unstable/unfinished project.

I never had any issues with setting up Git Flow on an empty repo before. So is there a way to get this behavior back?

Thanks
Steve

1 answer

1 accepted

0 votes
Answer accepted
James Barwick
Contributor
February 17, 2014

I think this is your answer. I setup an empty repository yesterday. I could not 'activate' gitflow with either SmartGit or SourceTree. I created a README file in the master, committed, then the gitflow initialization worked.

heck, all you really have to do is create a .gitignore and then commit it if you don't want a README file. (or create both). The README file is useful as it comes out on Bitbucket's overview page.

I suspect this is what you have to do.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events