Live data from Hacker News

Gitlab default branch name changes to main

about.gitlab.com

251–260 of 294 posts

Re: Gitlab default branch name changes to main

#251

Since we're talking about naming branches, what are your preferred names for branches ? I like 4-letter names: - `main` points to the last release for libraries (along with tags for history) - `prod` points to production in deployable projects (not libraries) - `next` is the development branch for the next version - `deps` is a temporary branch for dependency updates, squashed and merged regularly onto `next`

Good for you that you found something that works for you. But why the random length restrictions to 4 chars, seems kind of outdated? Also, how does using only a "next" branch for development scale for teams (maybe using a fork-based workflow?). While I use a similar approach like yours on my personal projects, I still prefer the widely known and battle proven Git-Flow when working on agile teams: - master - develop (…

I use this pattern mostly on solo projects and small OSS libraries, when working with clients in teams there is usually already a convention in place, most often just `master` and `develop`.

I've never managed to find use in the "complexity" added by adhering strictly to GitFlow (maybe I'm working in too small teams), I don't find it suited to the continuous delivery method. I still use feature branches and hotfixes though.

I much prefer a linear history, and use semantic-release to automate releases via commit message standardisation, which gets rid of the `release/*` pattern.

Re: Gitlab default branch name changes to main

#252

This is american cultural imperialism. Plaina and simple. I am planning to migrate to Russian or Chinese hosted git alternatives.

I am not American so maybe the impact of why it needs to be changed is lost on me. But given the context it’s either a zero or a positive net effect. I, however, can’t imagine switching away from a service that I use to something else based solely on this issue. If it’s not for you but it (tries) to helps others and doesn’t really take anything away from you then it’s a net positive change.

[dead]

Re: Gitlab default branch name changes to main

#253
post #229

Earlier quoted context omitted.

This will absolutely cost customers.. The rest of the world is getting fed up with the US. Most of the world is not as deeply racist and the US... Master is not associated with anything negative here.

"Whatever you do, don't use gitlab. They changed their default git branch to 'main'."

Those who have template scripts, docs and KB articles that use master now have to notify everyone to fix that crap.

It's not a free change that's for sure.

To be fair I'd never use Gitlab anyway so their chances to get me to use their service didn't drop.

Re: Gitlab default branch name changes to main

#254

I see this article is flagged. Really? Can't we even discuss this issue like adults?

Outside of a few trolly throwaways, the thread seemed reasonable enough last night. After being unflagged though, it's devolved even further into culture war flaming.

It seems to me HN is just not a community suited to discussing topics that are sensitive to some, but not others. We collectively are not very good at putting ourselves in other's shoes. That's something necessary to understanding the context behind decisions like these - or to at least frame them for discussion.

Sadly this thread has become just one more battleground for a war with no winners. Hopefully the temperature will lower in time, and productive discussion will become possible again. But we're not there yet, and I suspect the early flaggers recognized that.

Re: Gitlab default branch name changes to main

#255
post #107

Earlier quoted context omitted.

It's very smart. Trunk is a better term than "main" and reflects very well the logic with the tree and historical naming (including CVS, SVN, and the trunk software itself). main implies that one branch is more important than the others. This could be offending to some.

>main implies that one branch is more important than the others. This could be offending to some. I can't tell if this is satire or not.

It's HN so it may not be. In Japan, main family is the superior family while branch families are treated as lower class. This imperial system is still very much prevalent and map to skin too.

Re: Gitlab default branch name changes to main

#256
I didn't think of the word "master" being offensive in the context of Git branches until the issue came up a few months ago.

Once I became aware that some people are offended by the word "master" in this context, I immediately realized that I was blinded by my privilege, and I will henceforth name my branches with a new social consciousness.

That is, I was blinded by intellectual privilege: I had assumed that anyone smart enough to use Git would be smart enough not to care about this.

I will continue to name my own branches "master," and I have successfully convinced the organization I work for to do the same.

Before, I called branches "master" without any political intention at all. Now, I do so with an express political intention to demonstrate my explicit defiance of the censorious sort of people who insist that I must change my words because you might be offended by them.

Being upset about the name "master branch" is a completely ridiculous politicization of technology.

I'm thinking of downloading/buying and hoarding every mathematics and computer science textbook and paper I can find that uses the word "binary," since I'm sure they'll be banned soon due to being offensive to trans people, and someone ought to be preserving knowledge for when our society stops this insane witch-hunt and regains its sanity.

For posting this comment, I'm sure I'll be accused of being a racist, and stand a real risk of losing some karma.

I'm not a racist. The way I interact with people of all races is ethical, and gives me no trouble sleeping at night. I'm glad slavery ended long ago.

I'm simply taking a stand, in my own little way, against political correctness run amok.

Re: Gitlab default branch name changes to main

#258

Ironically, it'll probably be the Scrum Master that ends up creating a Story to update everything to Main.

Hells no. If this going to be enforced it better be done programmitically on my behalf and if the enforcement tool breaks anything the enforcement team is doing the RCA.

Re: Gitlab default branch name changes to main

#260

We should probably stop referring to nice teeth as straight and white too. Wouldn’t want to offend. If you can’t disambiguate software development from human abuse the problem is your grasp of semantics not society.

Unfortunately, its not programmers making these decisions. It's non-technical, marketing, and HR departments that copy and paste the terms from the most recent treatise on wokeness.
Post reply on HN