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 branch

See original GitHub issue

Update

Since this has gained traction recently, we wanted to update it to share that we chose development as our default branch name because it reflects the way we work more accurately. However, we don’t think it’s a good universal default branch name. main would likely be a better choice if you’re planning to rename master (unless there’s a more descriptive name you’d like to use that better reflects the way your team works).


Summary

I’d like to rename the branch master to development and use that going forward for our work.

From Problematic Terminology in Open-Source on master/slave terminology in software:

Use of this term is problematic. It references slavery to convey meaning about the relationship between two entities.

Removing this terminology from our workflow is a small gesture to include more people from marginalized groups in this project.

(I’m open to names other than development, though I do think it’s a good fit for us now that we are in the practice of using release branches.)

Technical Steps

  • create development branch from master
  • make development the default GitHub branch
  • modify github/central to use development for release notes reloading
  • redirect PRs to development in desktop/desktop
  • move branch protections from master to development
  • modify docs to reference development instead of master
  • delete master branch to avoid confusion?

(Thanks to @gr2m for prior thinking on this process)

Related Issues and Projects

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:36
  • Comments:15 (12 by maintainers)

github_iconTop GitHub Comments

13reactions
outofambitcommented, Jan 8, 2019

all done! ✨

13reactions
shiftkeycommented, Dec 21, 2018

In my head I’d always taken “master” to be borrowed from the concept of “master copy”. I wanted to see if the Git contributors ever documented it somewhere but I couldn’t find an early Git commit that mentions why master was chosen in that very first version. Maybe there’s a mailing list thread, but at this point it’s archaeological (Git is almost 14 years old since that first very first commit was created) and it’s for my curiosity more than anything.

So let’s do it.

I’m 👍 on the rename for few other reasons:

  • words have meaning, and need to be appreciated in a wider context than “it’s just code”
  • good names have value, and if there’s a name that better describes what the default branch represents to us we should use it
  • by using a different branch to master for the desktop repository we’re also developing and testing that GitHub Desktop has no leftover assumptions about the presence of a master branch

(I’m open to names other than development, though I do think it’s a good fit for us now that we are in the practice of using release branches.)

This is a chance for us to think about what the default branch represents - if it’s going to be the latest, bleeding-edge code then the name should reflect that.

I’m 👍 to development or even dev to save some keystrokes, but I’ll let others chime in if they’ve got bright ideas.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to rename the "master" branch to "main" in Git
In case you are using the Tower Git client, you can rename branches very easily: After creating the new "main" branch on the...
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 "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 your Git master branch to main. - gists · 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