-
Notifications
You must be signed in to change notification settings - Fork 253
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
Changing the default branch to main
#690
Comments
Experience from renaming pip's default branch is encoded here: pypa/pip#8948 Everything on GitHub "just works", but you'll need to manually update:
|
Thanks @pradyunsg ! That's very helpful :) |
One extra personal detail - remember to delete your |
The change has happened! Github is helpfully showing a note how to change your local repos, but if anyone missed it, the commands are: git branch -m master main
git fetch origin
git branch -u origin/main main
git remote set-head origin -a |
Interesting, if you follow those steps, local |
This is just a heads up, I'm planning to change the default branch on this repo to
main
this week, let's say Wednesday 26th. Github have a tool to change it over, and update PRs to target the new branch, but you might have to update it on local checkouts and forks. Shouldn't be a big issue though, this is what Github say about it:Checklist for the switch:
master
tomain
in CI configs, docs, scripts, example code, etcThe text was updated successfully, but these errors were encountered: