r/programming • • Jun 14 '20

GitHub will no longer use the term 'master' as default branch because of negative association

https://twitter.com/natfriedman/status/1271253144442253312
3.3k Upvotes

2.4k comments sorted by

View all comments

Show parent comments

91

u/kankyo Jun 14 '20

Or 4) when creating a repo via the web GUI they default to another name. This is by far the most likely. This won't break a lot.

14

u/Farsyte Jun 14 '20

So basically a change in the repo creation front end? No biggie then, anyone using tooling that depends on the main / trunk / golden / release / whatever branch vexing called master just keeps calling it that.

Irritated mode off 👍

-3

u/aniforprez Jun 14 '20

Yeah I don't understand why this wasn't part of their comment. Seems simple enough that they simply make a "main" branch instead of a "master" branch by default for new repos. Wouldn't break anything but it would be incredibly annoying

4

u/kankyo Jun 14 '20

At work we use "prod" anyway for many years. Always disliked master. Not that main is better.

5

u/aniforprez Jun 14 '20

We use master for the branch that stuff is always merged to and prod for stuff that is then manually deployed. master is always to staging and prod is to.. well production. This means all our master is our main branch

4

u/kankyo Jun 14 '20

We actually deploy a branch called "deploy" which is exactly the latest prod with successfull tests. The we can deploy prod in an emergency. It's a pretty great setup.