I didn’t think it would happen this fast, but now when I see a repo with a “master” branch instead of a “main” branch, I immediately check if it’s being maintained. The “master” branch name has become the “boomer branch” 😅

@patricia Huh, master is still the git default when creating a repo. Its only some services like github that have non-standard defaults... It seems new projects created using git on the command line (the way most pros do it) will still tend to use master over main.

@freemo @patricia Where's your data on “the way most pros do it” coming from?

@bjorn

Just personal experience. Vast majority of pros seem to use git command line and not through a gui. They use github of course, but only as the server repository not to replace the command line. I dont think ive ever seen a pro actually edit or modify their git repo through the github web IDE thing.

@patricia

@freemo @bjorn Considering that I’ve been using git professionally mostly on the commandline for… 11-12 years (?) I think I qualify as a “pro”

git config --global init.defaultBranch main

Follow

@patricia I wouldnt doubt you being in the "pro" group.. and perhaps your an exception as far as pros go WRT this practice. But the fact remains its exceedingly rare the pros seem to care enough to change from the default for no compelling reason. Usuallyt he type of people who use git tend to stick to the norm/standard/default unless there is a reason to change it. But as you point out, yes, you can change it to whatever non-standard default branch you wish.

Sign in to participate in the conversation
CleverLibre Social

CleverLibre Social is an inclusive social instance for open discussion, learning, and community.
All cultures welcome.
Hate speech and harassment strictly forbidden.