I've seen people actively go into their Git configs, to rename the default branch from `main` to `master`.

Makes sense if the source forge that you push to acts funny with anything other than `main`, but I've seen some people use nothing but GitHub, and GitHub doesn't care.

Edit: I have no idea why Git initializes to `main` by default on my laptop. I don't recall having changed that, but I could have. I just don't remember.

Follow

@manlycoffee

GitHub is the only one who changes it to main and really in my expiernce no one every starts the repo on github itself unless they are a amateur without much programming expiernce. Most use the git client and it still uses master. So the vast majority of repos i see are still on master, even new ones.

I myself always go with master because its the git default therefore the closest thing I can see to a standard, so i will make sure as a rule all repos in my org must be "master" until git changes it as the standard and then we will follow whatever the industry standard is according to git tool.

@freemo I guess `main` being default is a macOS thing

I may be wrong.

I don't recall ever having changed that.

@manlycoffee if you create the repo on github itself and ask it to create the intial commit it will use main. If you use gitlab it will use master, if you create it with `git init` on mac or linux or windows it will be master.

@manlycoffee

Oh and if you always seem to get the main default in git on mac thats cause at one point you or something added it to your config

git config --list

Sign in to participate in the conversation
Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.