Repository navigation
Description
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
developmentbranch frommaster - make
developmentthe default GitHub branch - modify github/central to use
developmentfor release notes reloading - redirect PRs to
developmentin desktop/desktop - move branch protections from
mastertodevelopment - modify docs to reference
developmentinstead ofmaster - delete
masterbranch to avoid confusion?
(Thanks to @gr2m for prior thinking on this process)
Related Issues and Projects
- #22667 replaced occurrences of master/slave terminology with leader/follower django/django#2692
- https://issues.apache.org/jira/browse/COUCHDB-2248
- https://www.drupal.org/node/2275877
- https://github.com/antirez/redis/issues/3185
- https://bugs.python.org/issue34605
- https://github.com/gr2m/octokit-rename-branch
Activity
shiftkey commentedon 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
masterwas 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:
masterfor thedesktoprepository we're also developing and testing that GitHub Desktop has no leftover assumptions about the presence of amasterbranchThis 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
developmentor evendevto save some keystrokes, but I'll let others chime in if they've got bright ideas.j-f1 commentedon Dec 21, 2018
main?gr2m commentedon Dec 21, 2018
Hey thanks for pinging me! I love that you do this, I plan to do this myself. I've made a library that hopefully makes this a little easier: https://github.com/gr2m/octokit-rename-branch.
It automates a few of the steps you need to take, like updating all pull-request bases. Let me know if you have any questions or suggestions to further improve the script :)
say25 commentedon Dec 22, 2018
I have always been partial to the term
trunk. Branches go off the trunk of a tree until they are no longer valid and are cut off.shiftkey commentedon Dec 22, 2018
Trunk Driven Development is also a great read if you want to learn more about this flow.
I actually like this more than
development, so that's currently got my vote.billygriffin commentedon Dec 23, 2018
Thanks @outofambit for kicking this off! In terms of the actual name, I don't have super strong feelings. I'd just say that as someone who has done some engineering but not a ton (and therefore more junior as a dev),
trunkisn't super intuitive to me as the default branch - though I do understand the concept especially after the explanation.Regardless of what we use, I'm glad we're now using release branches, which makes the idea of this as the default branch but not what we release from 👍 .
suphanatnack commentedon Dec 25, 2018
outofambit commentedon Dec 26, 2018
I think i'm leaning towards
mainordevelopmentnow. While I like the metaphor fortrunk, I share @billygriffin's concern that it may be less legible to newer users.outofambit commentedon Dec 27, 2018
ok, i've opened all requisite PRs. will make the actual change of default branch to
developmentin a couple hours and then redirect all PRs to point at that instead ofmaster.gr2m commentedon Dec 27, 2018
@outofambit make sure to also update branch protection and the repository’s default branch
outofambit commentedon Dec 27, 2018
@gr2m yes thank you! i had made a mental note of that but forgot to add it to the list above. updated!
shiftkey commentedon Jan 3, 2019
Just a heads up: I had to change a couple of non-config settings around this change because PRs were not being run as usual:
masteras the default branchmasteras the default branchoutofambit commentedon Jan 7, 2019
thanks for taking care of that and updating us, @shiftkey!
outofambit commentedon Jan 7, 2019
I've deployed the remaining changes to central and deleted the
masterbranch from this repo. Will close this issue once github/central#424 is merged. Thanks all!outofambit commentedon Jan 8, 2019
all done! ✨