It sounds way less offensive to those who decry the original terminology’s problematic roots but still keeps its meaning intact.

You are viewing a single thread.
View all comments View context
13 points

The default for git repositories is still master. Not to be the “real programmers only use CLI” guy, but I feel like git init isn’t too hipster.

permalink
report
parent
reply
-3 points

The default has been main for awhile.

This is the case in our current version of git (git version 2.28. 0). As of October 1, 2020, any new repository you create on GitHub.com will use main as the default branch.

March 2021 for gitlab

permalink
report
parent
reply
10 points

Still the default in git.

permalink
report
parent
reply
-1 points

…but recommended to be changed every. single. time. you git init. https://lemmy.world/comment/11895670

permalink
report
parent
reply
8 points

Github != git.

permalink
report
parent
reply
-2 points

No shit? Let me guess; you’re still using git like Linus intended it to be, decentralized, by emailing each other tar.gz’s

permalink
report
parent
reply
0 points

…which you get a multiline message telling you to change your ways (Linus doesn’t break UX)…every time you init…weird.

$ git init
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
permalink
report
parent
reply
3 points

Gonna be honest, I don’t think I ever read that. I think I usually just do git status immediately after to see if all’s well.

permalink
report
parent
reply

Showerthoughts

!showerthoughts@lemmy.world

Create post

A “Showerthought” is a simple term used to describe the thoughts that pop into your head while you’re doing everyday things like taking a shower, driving, or just daydreaming. A showerthought should offer a unique perspective on an ordinary part of life.

Rules

  1. All posts must be showerthoughts
  2. The entire showerthought must be in the title
  3. Avoid politics
    • 3.1) NEW RULE as of 5 Nov 2024, trying it out
    • 3.2) Political posts often end up being circle jerks (not offering unique perspective) or enflaming (too much work for mods).
    • 3.3) Try c/politicaldiscussion, volunteer as a mod here, or start your own community.
  4. Posts must be original/unique
  5. Adhere to Lemmy’s Code of Conduct

Community stats

  • 5.9K

    Monthly active users

  • 1.2K

    Posts

  • 18K

    Comments