Skip to content
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 main branch to "main" #664

Closed
ckoven opened this issue Jun 18, 2020 · 3 comments
Closed

rename main branch to "main" #664

ckoven opened this issue Jun 18, 2020 · 3 comments
Assignees

Comments

@ckoven
Copy link
Contributor

ckoven commented Jun 18, 2020

Per various news sources (e.g. https://www.marketplace.org/2020/06/17/tech-companies-update-language-to-avoid-offensive-terms/, https://www.bbc.com/news/technology-53050955), github is going to make it easier to change the default branch on all repos to something other than "master", for the obvious reason that that is an offensive word. Let's proceed to make that change (to "main"?) asap once they publish the workflow to do that.

@adrifoster
Copy link
Contributor

adrifoster commented Jun 18, 2020

Doing this on my repos as well. Here is a good how-to guide for this if anyone wants to do it now for their own (and includes a method to change the default naming convention for new repos).

https://www.hanselman.com/blog/EasilyRenameYourGitDefaultBranchFromMasterToMain.aspx

@glemieux glemieux moved this to ❕Todo in FATES issue board Nov 17, 2022
@glemieux glemieux self-assigned this Nov 17, 2022
@glemieux
Copy link
Contributor

This has been prioritized to happen very soon. An email will be sent out with instruction on updating remotes in users's forks of this repo.

@glemieux
Copy link
Contributor

glemieux commented Nov 22, 2022

Done!

For reference, here are the commands to update your local master branch to main:

git branch -m master main
git fetch <repo remote name>
git branch -u <repo remote name>/main main
git remote set-head <repo remote name> -a

You can find more discussion of the steps here: #944

Repository owner moved this from ❕Todo to ✔ Done in FATES issue board Nov 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

3 participants