News for hackers. Stuff that matters.
Re:Set the default branch for newly-created repositories by samename on Thursday August 27, 2020 @12:20AM (#24290085)
Key highlight:

> On October 1, 2020, if you haven't changed the default branch for new repositories for your user, organization, or enterprise, it will automatically change from master to main. You can opt out of this change at any time

Re:Set the default branch for newly-created repositories by kjeetgill on Thursday August 27, 2020 @09:57AM (#24293743)
To add emphasis to this: they changed the default branch name for new repositories.

You can opt-out of this change of the default. I don't know why I'd read that as changing existing repositories unless opted out.

Re:Set the default branch for newly-created repositories by lxe on Thursday August 27, 2020 @12:15AM (#24290067)
Why not 'trunk'? It's a tree after all... there are 'branches'... SVN got it right.
Re:Set the default branch for newly-created repositories by gkoberger on Thursday August 27, 2020 @12:29AM (#24290111)
Aside from the fact that `main` is pretty straightforward for people new to git, one huge benefit is that autocorrect for `ma` still works.
Re:Set the default branch for newly-created repositories by derivagral on Thursday August 27, 2020 @12:35AM (#24290143)
I've been in software since I was a teen, and this comment finally made me realize what "trunk" was actually supposed to mean before Git took over.

https://xkcd.com/1053/

Re:Set the default branch for newly-created repositories by skocznymroczny on Thursday August 27, 2020 @06:21AM (#24292077)
As a non-native English speaker I never connected SVN's trunk with the concept of a tree from which branches grow. I mean, I knew of this meaning of the word trunk but I never thought of it in this context. I was more familiar with the other meanings, the long body part on the elephant and the storage compartment on a car.
Re:Set the default branch for newly-created repositories by kjeetgill on Thursday August 27, 2020 @09:54AM (#24293705)
For some reason I'd associated it with trunk, a word for the human torso.
Re:Set the default branch for newly-created repositories by wfriesen on Thursday August 27, 2020 @03:14AM (#24290895)
My guess is because "Main" was used in Microsoft's TFS.
Re:Set the default branch for newly-created repositories by benatkin on Thursday August 27, 2020 @01:02AM (#24290274)
It's just like some politicians - destroying anything the predecessor created, no matter how good it is.
Re:Set the default branch for newly-created repositories by amanzi on Thursday August 27, 2020 @04:44AM (#24291396)
Pretty easy to opt-in. I also used Scott Hanselman's guide to change existing repos from master to main.

https://www.hanselman.com/blog/EasilyRenameYourGitDefaultBra...

Re:Set the default branch for newly-created repositories by philliphaydon on Thursday August 27, 2020 @12:38AM (#24290157)
I don’t know if it’s because I’m on my phone but I can’t opt out?

Edit: oh I miss read. Thought this affected existing repos.

Opted in for new repos.

Re:Set the default branch for newly-created repositories by tomschlick on Thursday August 27, 2020 @12:39AM (#24290165)
Clicking "change default branch name now" just opens a form to change it, thats how you opt out by typing master in that form. It's not super clear.
Re:Set the default branch for newly-created repositories by beirut_bootleg on Thursday August 27, 2020 @04:31AM (#24291316)
As a secondary developer, this offensive to me. Now I'll have to work on a branch named after the main developer, reminding me every day that it's THEIR project and I'm just a code monkey.