this post was submitted on 30 Jan 2025
31 points (79.2% liked)

Technology

61227 readers
5047 users here now

This is a most excellent place for technology news and articles.


Our Rules


  1. Follow the lemmy.world rules.
  2. Only tech related content.
  3. Be excellent to each other!
  4. Mod approved content bots can post up to 10 articles per day.
  5. Threads asking for personal tech support may be deleted.
  6. Politics threads may be removed.
  7. No memes allowed as posts, OK to post as comments.
  8. Only approved bots from the list below, to ask if your bot can be added please contact us.
  9. Check for duplicates before posting, duplicates may be removed
  10. Accounts 7 days and younger will have their posts automatically removed.

Approved Bots


founded 2 years ago
MODERATORS
 

So creating a new repo on GitHub, you get a set of getting started steps. They changed the default branchname to "main" from "master" due to its connotations with slavery.

When I create a new repo now, the initial getting started steps recommend creating a branch named "master" as opposed to "main" as it was a while ago.

It's especially weird since the line git branch -M master is completely unnecessary, since git init still sets you up with a "master" branch.

Disclaimer: I have a bunch of private repos, and my default branchnames are pretty much all "master".

Is this a recent change?

Edit: Mystery solved, my default branchname is "master". Thanks [email protected] !

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 8 points 9 hours ago (1 children)

The only statement in your ridiculous rant that has any validity

Thanks! It sure makes me want to have a civil discussion with someone who belittles my opinion and reduces it by calling it a "rant".

I'll extend you the same courtesy as you have me.

But pipelines need to be updated and validated semi-regularly...

Not if you're doing it right. sad shitty devs hack together pipelines that require constant maintenance. I've got pipelines that have worked flawlessly for over 7 years yet other projects I don't own are constantly running into problems deploying because their pipelines were "configured for last release".

...and should be generalized to begin with,...

Wrong again. Pipelines do the thing they are supposed to do and do it extremely well. are you sure you know what you're talking about?

...so it’s not really any good point that your legacy pipelines cannot handle a default branch name change like modern pipelines should.

yeah fuck me for creating a pipeline for each of my environments that have dedicated branches. fuck me for setting a standard and adhering to that standard.

if you need to switch your branch on your pipeline regularly you're not following proper branching strategies.

Swap main and master in your comment and it reads the exact same with all the same shallow justifications.

you may be right, but the same could be said for literally any comparative opinion.

[–] [email protected] -5 points 9 hours ago (1 children)

lmao nothing you've said has anything to do with "Main is more concise and less problematic". Just because you created more work for yourself by having 70+ pipelines that need to be rewritten for a branch name change doesn't mean it's less concise or more problematic. It means you messed up by not having a pipeline capable of such a basic feature -- generalized targets with a separation of concerns. Standards change, requirements change, so do build pipelines. Being stubborn is not a reason against changing colloquial terms out of respect and growth in understanding.

[–] [email protected] 3 points 6 hours ago

colloquial terms? these are terms that describe technical standards that have likely been around longer than you've been alive.

Imagine if your doctor one day said you have rectumbabados instead of colorectal cancer because the word "cancer" is too triggering.

that's the problem with young inexperienced devs these days. they just don't get it. standards aren't meant to change. standards are meant to adapt and evolve. forcing a frivolous name change on a branching strategy all for corporate to check their "social responsibility" checkbox is not evolving. it's not adapting. it's corporate grandstanding and literally is meaningless. like Target saying they support LGBTQ+ and then yanking all DEI support.

I maintain enterprise solutions. I hold myself to a higher standard than you might and have proven my worth through consistent delivery. my builds take minutes. my deployments take minutes. my counterparts take an hour or more to build and deploy. if I were to do whatever the fuck you're doing I would be out of a job.

get some real experience before you go hotdogging with that tiny wiener you call expertise.