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

Rename default branch from master to main #166

Open
meyermarcel opened this issue Nov 30, 2024 · 0 comments
Open

Rename default branch from master to main #166

meyermarcel opened this issue Nov 30, 2024 · 0 comments

Comments

@meyermarcel
Copy link
Contributor

meyermarcel commented Nov 30, 2024

This is not so important but it would help to be more conform with the convention and would lower a tiny bit the bar for contributors to this repository.

  • All new GitHub repositories use main as the default branch
  • git init gives a hint to change the default branch to main
    hint: Using 'master' as the name for the initial branch. This default branch name
    hint: is subject to change. To configure the initial branch name to use in all
    hint: of your new repositories, which will suppress this warning, call:
    hint:
    hint: 	git config --global init.defaultBranch <name>
    hint:
    hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
    hint: 'development'. The just-created branch can be renamed via this command:
    hint:
    hint: 	git branch -m <name>
    
  • I am used to type mai and hit TAB to let my shell complete to main
  • main could give the contributors the impression that the repository is more up-to-date

Here you can go to the branches of the repository (I didn't find it myself):

Screenshot 2024-11-30 at 12 50 24

After you changed the default branch name to main GitHub will help you with suitable command hints to reflect the change locally as well.

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

1 participant