question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

rename master to main

See original GitHub issue

following this example

If someone has a local clone, then can update their locals like this:

$ git checkout master
$ git branch -m master main
$ git fetch
$ git branch --unset-upstream
$ git branch -u origin/main
$ git symbolic-ref refs/remotes/origin/HEAD refs/remotes/origin/main

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
markusweimercommented, Jun 16, 2020

But why? Why create friction for no apparent benefit?

The benefit is the reduction of language in tech that is uncomfortable from a race relations perspective in the US.

At the same time, it is just good naming. Finding good names in software is always hard. And master is particularly useless choice of name: There is nothing the master branch particularly excels at. But it is where the main part of the development happens. Hence, main is much more clear, concise and appropriate name.

1reaction
ksaurcommented, Jun 16, 2020

Doesn’t renaming it also create inconsistencies with other projects on GitHub?

https://www.zdnet.com/article/github-to-replace-master-with-alternative-term-to-avoid-slavery-references/

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to rename the "master" branch to "main" in Git
Renaming "master" to "main" in Tower ... In case you are using the Tower Git client, you can rename branches very easily: After...
Read more >
How to rename your "master" branch to "main" - GRRR Tech
From the branches page of your repository, you can rename the branch by clicking the little pencil icon. When renaming your branch, GitHub...
Read more >
How to rename the master branch to main - DEV Community ‍ ‍
Rename master to main. First thing to do is to checkout the master branch if you didn't already: git checkout master # Also...
Read more >
How to rename your Git master branch to main. - GitHub
Change your default branch on GitHub by going to your GitHub repository in your browser, and navigate to Settings > Branches and click...
Read more >
Why GitHub renamed its master branch to main | TheServerSide
GitHub renamed the master branch to main for any Git repository, as it addresses cultural change like so many organizations that have nixed ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found