-
Notifications
You must be signed in to change notification settings - Fork 784
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 or so #1130
Comments
What's your intended benefit of doing this? |
Ah, I'd missed this discussion earlier in the year but agree with its points and happy to support the movement: https://dev.to/rhymu8354/git-renaming-the-master-branch-137b |
|
FWIW I suggest we do this move later in the year when Github releases "seamless move" for the default branch: https://github.com/github/renaming#later-this-year-seamless-move-for-existing-repositories- |
Another reason to wait for seamless move: for git dependencies, |
Github now supports the seamless move: https://github.blog/changelog/2021-01-19-support-for-renaming-an-existing-branch/ I'll make the renaming at the weekend unless I hear a reason not to! @kngwyu |
May I request either waiting for rust-lang/cargo#9133 to be into stable (which should happen in 1.52, I believe), or alternatively keeping the old master branch around for compatibility with people using pyo3 through git dependencies? The current behavior of cargo with git dependencies is to assume the default branch is |
So I just tested it the rename with
However if I change to use the ssh protocol, e.g.
then indeed
My personal opinion is that because the https URL will continue to work fine, it's ok for us to proceed. But I will wait for confirmation from someone else, as users on Rust older than 1.52 will not be able to use git ssh dependencies. I doubt many (any?) users are doing this. |
Ah, alright, that sounds fine then. I was under the impression that https clone would have the same problem, but if they work, then there should be no problem! Thanks for checking :). |
It can cause inconvenience for a while but will be beneficial for this project.
Github provides some references for this:
https://github.com/github/renaming
https://github.blog/changelog/2020-08-26-set-the-default-branch-for-newly-created-repositories/
Though I have to practice renaming in some personal projects.
The text was updated successfully, but these errors were encountered: