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

Change default branch to main #421

Closed
calavera opened this issue Feb 18, 2022 · 2 comments
Closed

Change default branch to main #421

calavera opened this issue Feb 18, 2022 · 2 comments

Comments

@calavera
Copy link
Contributor

calavera commented Feb 18, 2022

That's the default branch name that we've been using in all our repositories. I believe we should make the update here sooner rather than later.

@nmoutschen
Copy link
Contributor

Sounds good!

I think the most important changes will be on the GitHub workflows (e.g. here), and we should keep the master branch for those that use it as a dependency, but we should definitively switch to main.

@calavera
Copy link
Contributor Author

I've renamed the default branch already, run this to update your local repository:

git branch -m master main
git fetch origin
git branch -u origin/main main
git remote set-head origin -a

GitHub redirects automatically from the old name to the new one, so using the repository as a dependency should still work.

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