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

Accepted Answer
0 votes

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
Community showcase
Posted Oct 08, 2018 in Teamwork

If you could delete any meeting from your calendar, which one would it be?

Let’s face it: most of us have too many meetings on our calendars. And few things are a bigger waste of time than recurring meetings that no longer provide any value to attendees (or the busines...

578 views 16 9
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