Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
nysander opened this issue Nov 18, 2023 · 3 comments
Open

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

nysander opened this issue Nov 18, 2023 · 3 comments

Comments

@nysander
Copy link

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
Copy link
Member

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
Copy link
Author

nysander commented Nov 18, 2023

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants