Setup Git Flow on an empty repository

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

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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Friday in Off-topic

Friday Fun: Riddle me this

Happy Friday, Funmakers! We had a Community Team offsite in Austin this week, and my mind feels primed for thinkin' from all the brainstorming we did!  So, this week's Friday Fun thread w...

209 views 24 5
Join discussion

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