-
Notifications
You must be signed in to change notification settings - Fork 355
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 the master branch #1421
Comments
We are first trying this in other ARIA repos where things are simpler. Following is an outline of a plan to execute. There are quite a few considerations, so I'm a little surprised there are not more articles out there about how to do it and how to avoid problems. Here is pplan we have at this time.
Open questions:
|
No, I don't think so, because under the hood, branches are just aliases to a commit hash, which will be the same for the new branch name. This suggests using the Reference for the PR target changing https://docs.github.com/en/github/collaborating-with-issues-and-pull-requests/changing-the-base-branch-of-a-pull-request Probably also need to update build status badges in README Looks like GitHub also has something in the pipeline for this year, but no concrete date https://github.com/github/renaming#later-this-year-seamless-move-for-existing-repositories- |
@nschonni wrote:
I was not aware. Thank you! I propose we wait for that process. Most people seem to assume that people will open their clone and know that they first need to take some steps to do this ... but reality is most people will do a git pull without realizing the change was made. So, they will not have the option to use -m locally. It seems like the GitHub team is thinking about this too. |
Seems like this might be ready now. I saw it in another repo doing it https://github.com/github/renaming#creating-a-seamless-move-for-existing-repositories- |
For the open PRs, I think it's transparent now, but it might be good to have a PR ready/open to adjust things like
|
@nschonni |
@jongund I think you're talking about particular conflicts with branches on existing forks? If so, a branch is really a friendly name to a commit tree (probably not even explaining that right), so it's just getting a new label, rather than any changes to commits to the branch. A little off topic, but since these started to change, I adjusted my local git alias to be a little more agnostic to what the default branch is, like https://github.com/nschonni/dotfiles/blob/master/.gitconfig#L26 |
@nschonni I have a branch with the required changes ready. However I got a "permission denied error" when I tried to push it. I am not certain of the process to get write access. Is there something I need to do? |
I'm not a "member" of the group, so I just do everything from my fork and send PRs from there 😄 |
Ha I will do it that way then! |
(Edit: I see now this was already discussed above, sorry!) GitHub now has a feature to make it easy to rename branches and automatically update existing PRs and branch protection settings. The steps are:
|
Thank you @jesdaigle and @zcorpan! Here's what I propose for closing this out.
The instructions for local clones are as follows. From the local clone of the repository on a computer, run the following commands to update the name of the default branch.
After all this, what would be the best way to test to ensure everything is working correctly? I'd like to also ensure we have someone available to test and help resolve problems if any arise. |
Rename time has been confirmed. The rename will occur between 10:00 and 11:00 AM US Pacific time on March 3, 2021. |
@nschonni wrote:
A lot of great PRs, I might add! The downside of this is that is really difficult for anyone to contribute to the branch or rebase. So, it would be far better if you could branch in a clone instead of a fork. @nschonni, I'm more than happy to add you to the team that can push new branches from a clone if you would like. I'd certainly like that. @jesdaigle wrote:
@jesdaigle, like Simon, you are now a member of the ARIA contributors team and can push branches from a clone. Please make contributions that way going forward. |
Thank you! |
@nschonni wrote:
@mcking65 wrote:
@carmacleod says:
|
master
→main
ormaster
→primary
.Resources:
The text was updated successfully, but these errors were encountered: