-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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 #4631
Comments
i like "main" or "development" but i think "main" is friendlier and simpler! i could also see something like "current" for this repo in particular, but i don't have a strong argument for or against that. |
"main" works. So so glad about this! |
sounds great! i like "main" :) |
I'm going to be helping to push for this change in the Node.js project (and am an employee of GitHub)... if there is anything I can do to help y'all with this please lmk. |
@outofambit do you know the next steps for us here? you mentioned a guide you were working on? and thanks @MylesBorins! if you know any tips or best practices for making this change smoothly would love to hear. otherwise I can just give it a try and see how it goes.. |
@lmccart yes, me, @MylesBorins, and others are working on a GitHubby guide, but I can share the highlights here! Automatic Option@grege2 has a great little tool that does all the manual steps below for you. i haven't used it personally but he's been maintaining it for a while now! https://github.com/gr2m/octokit-rename-branch Manual Steps
Warning: Broken links!One tricky thing, especially for p5.js, is that some URLs will be broken by this. For example, https://github.com/processing/p5.js/blob/master/Gruntfile.js will no longer work because it refers to I think this will require updating such links in https://github.com/processing/p5.js-website, and our wiki. This should be a complete list of instances in the processing org. These links often appear in issues as well. 😕 I don't have an automated way to fix those, though one probably could be written... |
thanks @outofambit this was so helpful. I did it by hand because scripts scare me sometimes. I'm sure I broke some things. :) I'm keeping this open because there's still work to be done:
help is welcome with these. each instance of i'm going to work on making the shift for the |
@outofambit + @MylesBorins would it be possible for Github to implement a default branch check before showing 404, to prevent these broken links throughout the web? Like the example https://github.com/processing/p5.js/blob/master/Gruntfile.js – instead of landing on a 404 page, attempt to replace the given branch of that URL with the repos default branch name? Then it would auto-load/forward to https://github.com/processing/p5.js/blob/main/Gruntfile.js before showing a true 404 if the file really is missing or was removed. Might ease other repos transition towards this positive change. |
I'm very into this change :) I actually ended up changing the default branch to in the web editor repository to |
Sorry that I only caught this issue now
I made that particual script :) Please feel free to reach out next time, I'm very happy to help when it comes to GitHub automation thingies. Side note / protip™ on links pointing to a branch: instead of links such as https://github.com/processing/p5.js/blob/main/CODE_OF_CONDUCT.md, you can press the y key to change the URL to point to the latest commit in that branch again, in this case https://github.com/processing/p5.js/blob/59d40c7dce7f3f2d2c2e257a3e575e3616794742/CODE_OF_CONDUCT.md Files can be moved or deleted in future, so they won't work any more when pointing to the branch. But using the commit, they link will always work. Even when renaming the main branch. |
oh @catarak that's wonderful! thanks @gr2m! and the fear is not really about the script maker, just my own generalized anxiety about getting a command wrong and other control issues lol! thank you for making this. now that i've gone through the process, i am going to try the automated tool out on some other repos of my own. <3 |
Sorry for the off-topic comments 🙇 Hold on, I'm writing a better solution, with more control for you. It will be a GitHub app that you can install and uninstall once the migration is done. It will create a pull request with a search&replace for the code. And only when merged, it will update the branch. I'll test that thoroughly on my own repos first. If you don't want to wait, I'm happy to help anyone with the migration with the scripts that I have today. |
I just want to respond to a deleted comment that questioned the efficacy of this change in combating racism because I don't want it to feel like people are expected to just get it. I also want to express some feelings that have been brewing as I watch the response to GitHub making this decision as a company and I assume this thread will be my only chance. This (renaming the primary branch) is definitely a simple aesthetic change and may be born more out of a desire to do something within open-source without actually challenging anything fundamental to the ecosystem. But there is definitely a good argument for why this simple aesthetic change is useful. These threads and the one's posted by lmmcart are good starting points for seeing what the debate internal or external looks like: My general feeling is that the origin of the use of That said, if you look at the above threads, you will find mostly white men arguing over the decision by Github. Many BIPOC contributors that you see in the comments (or that I have talked to in person) see this as a facile PR stunt. I do not want to start a debate, as I think that is unnecessary and I resolve pretty resolutely into the 'change it' camp but I also just want to bring up the devastating smallness of this change relative to the size of the problem. I think this is especially evident on this platform as Microsoft is a consistent supporter of police and ICE. They are deeply invested in surveillance technologies and work to build software tools specifically for policing. I would like to see this change be the beginning of dreaming up bigger changes, perhaps even discussing the viability of abandoning GitHub for a self-hosted GitLab. But that is definitely not the only thing that can be done. I am sure there are other drastic and meaningful forms of antiracist activism that can take place within FLOSS. This is something that I for one want to find a deeper imagination for. |
@roman1bondarenko your comment was deleted because the tone was aggressive. Check out the code of conduct for this repo and use patient, open, and respectful language or you will not be a part of the conversation. |
so, where i was aggressive? i just say that this renaming are not affect to life quality:) |
@roman1bondarenko if you'd like to post your view with respect and care, please do. i think it is important for different viewpoints to be welcome here. thank you! however, i don't want to spend too much energy on this decision, as @stalgiag mentions, there is more work to be done. and considering |
Leaving every other aspect aside, I think the term "main" is aesthetically better and defines the purpose of the branch more clearly. I like this change. 😁 |
Ok all links in wiki and open issues are have been updated. There may be some remaining broken links in closed issues, but I think we can update these as needed. Thanks everyone. |
To "main"? Or something else?
Other precedents and discussions:
The text was updated successfully, but these errors were encountered: