-
-
Notifications
You must be signed in to change notification settings - Fork 644
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 master branch to main #849
Comments
I'll make this change on a few of my other repos first to make sure I haven't missed any tricky edge-cases. |
I'm doing https://github.com/simonw/datasette-psutil first. In my local checkout:
(Thanks, https://www.hanselman.com/blog/EasilyRenameYourGitDefaultBranchFromMasterToMain.aspx) Then in https://github.com/simonw/datasette-psutil/settings/branches I changed the default branch to Links to these docs: https://help.github.com/en/github/administering-a-repository/setting-the-default-branch That worked! https://github.com/simonw/datasette-psutil One catch, which I think will impact my most widely used repos the most (like datasette) - linking to a specific file now looks like this: https://github.com/simonw/datasette-psutil/blob/main/datasette_psutil/__init__.py The old https://github.com/simonw/datasette-psutil/blob/master/datasette_psutil/__init__.py link is presumably frozen in time? I've definitely got links spread around the web to my "most recent version of this code" that would use the |
The big question is how this impacts existing CI configuration. |
This guide is fantastic - I'll be following it closely: https://github.com/chancancode/branch-rename/blob/main/README.md - in particular the Action to mirror master and main for a while. |
https://twitter.com/jaffathecake/status/1273983493006077952 concerns what happens to open pull requests - they will automatically close when you remove |
I mentioned this issue here: https://simonwillison.net/2020/Jun/26/weeknotes-plugins-sqlite-generate/ Repositories created by following the README in https://github.com/simonw/datasette-template and https://github.com/simonw/click-app have a |
Watch out for places in the documentation that might link to datasette/docs/custom_templates.rst Line 247 in 2d7fa8b
|
https://github.com/simonw/datasette/tree/main branch now exists and will automatically mirror master (and vice-versa). |
I'm going to change the default branch on the GitHub repository. If something breaks I can always change it back again. Done that! Default is now |
I've been running on |
I was waiting for consensus to form around this (and kind-of hoping for
trunk
since I like the tree metaphor) and it looks likemain
is it.I've seen convincing arguments against
trunk
too - it indicates that the branch has some special significance like in Subversion (where all branches come from trunk) when it doesn't. Somain
is better anyway.The text was updated successfully, but these errors were encountered: