6 ms·
I've got to admit that "main" makes a lot more sense. It's the main branch where all commits are collected before getting deployed, it's not a master that bosse
by mcv 6y ago
I've got to admit that "main" makes a lot more sense. It's the main branch where all commits are collected before getting deployed, it's not a master that bosses all the other branches around.
- deleted 6y ago[deleted]
- vonmoltke 6y ago> it's not a master that bosses all the other branches around That's not the only sense of the word "master". There are several, but the one used in git's case is that of a copy or instance from which all other copies are made.
- jetrink 6y agoYou're thinking of the wrong definition of master. Git's master refers to the primary copy of something from which derivative copies are made. E.g. In casting, a master is used to form new molds[1]. In audio engineering, a master tape holds the final mix of a recording[2]. (Incidentally, this is where the term remastering comes from, because you are creating a new master version.) 1. https://www.instructables.com/id/Two-Part-Silicone-Casting/ https://www.instructables.com/id/Two-Part-Silicone-Casting/ 2. https://en.wikipedia.org/wiki/Mastering_(audio) https://en.wikipedia.org/wiki/Mastering_(audio)
- multiplegeorges 6y agoI keep seeing this stated as fact without any citation whatsoever. Here's an argument with citations that the term "master" in the git context does indeed come from the master/slave terminology: https://mail.gnome.org/archives/desktop-devel-list/2019-May/msg00066.html https://mail.gnome.org/archives/desktop-devel-list/2019-May/...
- D13Fd 6y agoThat's where I assumed "master" came from. But it still doesn't fit, because a master copy is normally static. The master branch in Git is anything but static.
- loco5niner 6y ago> because a master copy is normally static That depends on the time scale you are considering.
- ohlookabird 6y agoWhy not use "primary" then? In database terminology primary and replica are quite common for instance.
- bokwoon 6y agoI also think 'main' branch makes more sense, but GitHub is breaking away from an entire collective body of tutorials out there that already reference the 'master' branch. All for the sake of PC and a knee jerk reaction to a recent event. What will people think of this change 5 years on?
- mcv 6y agoI think in 5 years everybody will be used to it. Tutorials will have changed by then and everybody will eventually forget that this was ever an issue. I'm don't think it's a necessary change, but I also don't think it's a harmful change.
- wayneftw 6y agoGitHub is not Git. If the Git cli tool still initializes a new repo to 'master', I'm not going to go out of my way to rename it before I push to GitHub. I haven't seen any discussion around changing the Git cli tool.
- mcv 6y agoI don't think git bans you from using a master branch, does it? It's just that their default has changed. But any other branch name will still work.
- j-james 6y agoI have: https://public-inbox.org/git/4c08e1a0-db64-5d7d-493f-54c68ee75470@gmail.com/T/ https://public-inbox.org/git/4c08e1a0-db64-5d7d-493f-54c68ee...