Comments (12)
Closing this because I think 5 years waiting for a reply is enough time
from gitflow4idea.
The drop downs let you select from existing branches. "develop" doesn't exist in your project yet.
from gitflow4idea.
Or in some cases, you haven't checked out the develop branch (it happened to me).
from gitflow4idea.
@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.
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.
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:
@rbellamy What do your other tools to when you try to init with a non-existing master branch?
from gitflow4idea.
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.
So what about plans on this feature?
from gitflow4idea.
There are definitely plans
from gitflow4idea.
Sounds good. Let's wait another year. ;-)
from gitflow4idea.
Or... you can always clone the repo and give it a go :)
from gitflow4idea.
Yep.) I forgot where is my book "How to learn Java in 21 days". :D
from gitflow4idea.
Related Issues (20)
- Reading Git repository information should not be done on the EDT HOT 2
- Do not call synchronous repository update in EDT HOT 1
- Unsupported Git Flow Version HOT 11
- Unsupported Git Flow Version for 1.12.3 (AVH Edition) HOT 9
- IDE Fatal Errors HOT 2
- Assertion failed: dataContext has no component for new ListPopupStep HOT 1
- 2021.2 Compatibility HOT 6
- After updating WebStorm to version 2021.2, the plugin broke HOT 2
- Exception: cannot share data context between Swing events HOT 7
- Please update for last IDE version. HOT 1
- IDE Fatal Error on Init Repo HOT 3
- Null Pointer when finishing branch: "branch was merged into null" HOT 1
- Gitflow repository initialization stucks HOT 1
- Execute command on all repos in "Open task" widget
- Access from event dispatch thread is not allowed.
- 2021.3 Compatibility HOT 29
- java.lang.Throwable: Assertion failed: dataContext has no component for new ListPopupStep
- Contributors
- Can we support IntelliJ IDEA 2022.1.1 HOT 1
- Unsupported git flow version HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gitflow4idea.