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

52

u/Lvl999Noob Jun 14 '20

A lot of tooling assumes the main branch to be called master, i think. Those scripts would be the ones breaking. It shouldn't cause too much problem unless the name was hardcoded and used a lot

0

u/mitsuhiko Jun 14 '20

lot of tooling assumes the main branch to be called master, i think.

I haven't come across a lot. Git flow uses develop as the real default branch for years. You normally don't interact with master much in that setup.

0

u/[deleted] Jun 14 '20

[deleted]

12

u/TheWix Jun 14 '20

Yep, merge to master after a successful release

2

u/[deleted] Jun 14 '20

Not positive, but isn’t it the other way around? Release after a successful merge to master?

2

u/LosersCheckMyProfile Jun 15 '20

Yeah they are talking about the old git flow from like 10-20 years ago.

These days all our projects use the master > release/tag pattern

4

u/[deleted] Jun 14 '20

Except if you're not using Git flow. Which is probably a good idea, because Git flow is a horrible branching workflow. You don't need a master branch that only contains tagged commits, you can just tag the commits on your develop branch and use only that. And then call it master, as everyone else does.

0

u/dakotahawkins Jun 15 '20 edited Jun 15 '20

I think the point of that is just that cloning the default branch gives you the latest stable release. There's not really a great other way to do that.

Edit: Also, it gives you a way to branch from develop to stabilize releases without halting progress on everything else. If you don't need to do that, then you don't need to that, but if you do, git flow is a nice workflow.

1

u/LosersCheckMyProfile Jun 15 '20

You must be one of those old stubborn developers:

https://docs.gitlab.com/ee/topics/gitlab_flow.html

0

u/dakotahawkins Jun 15 '20

I mean I don't use it on personal projects, they're nowhere near big enough. I've used it on a big project where it did make sense though, and I don't think another workflow would have worked as well.

1

u/[deleted] Jun 14 '20

Wouldn't the app itself break if I don't call in first place my repo master without knowing that the tools I'm using has hardcoded branches system? Looks like an entire day wasting my time on trying to fix something I didn't break neither can't I find out

Yeah, master shouldn't be changed, but the idea tools depends of it sounds more problematic than the subject we are trying to change