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

49

u/csetjack15 Jun 14 '20

The amount of comments here that don't know how much shit this will break astounds me, and doesn't surprise me.

If ci scripts aren't a good enough thing to break, (did anyone run into python virtualenv releasing a typo a couple days ago? we did), what about every bitbake recipe in yocto that points to master branches of every git repo in those recipes. Sure you can just f/r that away, probably, hopefully your f/r goes well and catches everything.

I don't mind the sentiment (worthless or not), Gitlab already changed their user permissions structure from master -> maintainer. However, ya, people should consider the amount of headache this will create just to make a weak point.

3

u/tracernz Jun 15 '20

This would only apply if you create the first commit in a new repo through the GitHub UI wouldn't it? I expect a very small number of projects serious enough to have any automation would be initialized that way rather than through git itself. I'm assuming they're not submitting a patch to upstream git...

1

u/csetjack15 Jun 15 '20

The point is, if the world is going to make this transition, it doesn't make sense for legacy projects to remain with "master" as the default branch. The world should standardize on one default branch name for git. Gitlab and Github are pushing for this change, and will likely be the ones who influence the resulting name.

You are generally correct, the existing repos don't HAVE to change. But how confusing will it be when you have new developers forgetting which repos are "master" and which repos are "main" or whatever.

So, for example, leaving Yocto recipes as a mixture instead of having this singular name for consistency would be quite a headache