Giter Site home page Giter Site logo

Comments (12)

OpherV avatar OpherV commented on September 24, 2024 1

Closing this because I think 5 years waiting for a reply is enough time

from gitflow4idea.

OpherV avatar OpherV commented on September 24, 2024

The drop downs let you select from existing branches. "develop" doesn't exist in your project yet.

from gitflow4idea.

uda avatar uda commented on September 24, 2024

Or in some cases, you haven't checked out the develop branch (it happened to me).

from gitflow4idea.

rbellamy avatar rbellamy commented on September 24, 2024

@OpherV - yeah so I should have spoken up sooner. And probably been more clear. Most other tools I've used with the git flow workflow would do whatever it took to make this work. So if there is no develop branch, create it. If the remote has one but local doesn't, go get it.

from gitflow4idea.

OpherV avatar OpherV commented on September 24, 2024

tldr;
I spent a lot of time looking into this it but unfortunately it's non-trivial. Maybe someone has a good idea on how to tackle this.

The full scoop:

The git flow init command prompts for extra input to define the production branch, release branch, prefixes etc. If the production and release branches do not exist, it creates them. I couldn't find an easy way of inputting these extra parameters after the command was already issued, since the git4idea plugin I rely on doesn't really support something like that.

The way the git options work right now, as @avogler implemented it:

1 .Options dialog is confirmed
2. Prefixes in the .git/config are set to dialog options
3. git flow init -d is called (default options)
4. This in turn sets 'Develop' and 'Master' branches and creates them (because of the default options flag)
5. dev and prod branch names from dialog options are set in .git/config

This is kind of a workaround, but it works because the branches are already there.
It won't work for non-existent branch names, because the proper branches will not be created by the init function.

If we want to make this work with custom names, we'll have to find a way to input parameters into the git flow init prompt.

from gitflow4idea.

OpherV avatar OpherV commented on September 24, 2024

I did some more research into this.
I think I can make it work with custom development branch name, but not with a custom production name. Even in SourceTree, when you try to insert a non-existing master branch name you get:
testmaster

@rbellamy What do your other tools to when you try to init with a non-existing master branch?

from gitflow4idea.

OpherV avatar OpherV commented on September 24, 2024

Update - this seems to work with git flow when initializing a repo with no branches, but not when initializing a repo with existing branches.

Which use case were you referring to?

from gitflow4idea.

VFedyk avatar VFedyk commented on September 24, 2024

So what about plans on this feature?

from gitflow4idea.

OpherV avatar OpherV commented on September 24, 2024

There are definitely plans

from gitflow4idea.

VFedyk avatar VFedyk commented on September 24, 2024

Sounds good. Let's wait another year. ;-)

from gitflow4idea.

OpherV avatar OpherV commented on September 24, 2024

Or... you can always clone the repo and give it a go :)

from gitflow4idea.

VFedyk avatar VFedyk commented on September 24, 2024

Yep.) I forgot where is my book "How to learn Java in 21 days". :D

from gitflow4idea.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.