CJ-Systems / gitflow-cjs

CJS Edition of the git extensions to provide high-level repository operations for Vincent Driessen's branching model
http://nvie.com/posts/a-successful-git-branching-model/
Other
85 stars 12 forks source link

Default "master" branch should be renamed to "main" #85

Open nysander opened 10 months ago

nysander commented 10 months ago

I see here two problems

  1. nowadays most of repositories use main as default git branch and gitflow still provides master as default, is there possibility to change the default value?
  2. there is no option to set master develop branches from command line

Is there any chance for such improvements?

ChrisJStone commented 10 months ago
1. nowadays most of repositories use main as default git branch and gitflow still provides master as default, is there possibility to change the default value?

I have no issues with updating the default branch name used. Though I think it would be better to default to the value of init.defaultBranch instead of defaulting to main.

2. there is no option to set master develop branches from command line

What do you mean by master develop branches? When starting a new feature you can specify a different branch other then develop to base the feature on. Also base branches can be updated via git flow config

nysander commented 10 months ago

usage: git flow init [-h] [-d] [-f] [-g] does not have option to give "defaultBranch" and "develop" branch names from command line arguments

in certain conditions where no branch is created during git init, git flow init suggests [master] as default branch

nysander commented 10 months ago

using git flow config might be an option but I looked for solution to run init from another command line tool and use predefined values for all kind of branches