How to make "git init" use "default" as the default branch name instead of "master" 

- Firstly, designate a custom template directory, let's say "mkdir ~/gittemplates".

- (optional) Copy the default template structure over: "cp -R /usr/share/git-core/templates/* ~/gittemplates/"

- The file HEAD points to the default branch, so now: "echo 'ref: refs/heads/default' > ~/.gittemplates/HEAD"

- Activate it: "git config --global init.templateDir ~/gittemplates"

And... done! #git #NoGodsNoMasters

How to make "git init" use "default" as the default branch name instead of "master" 

@Coffee why though?

How to make "git init" use "default" as the default branch name instead of "master" 

@mister_monster It's an incredibly simple thing to do, shows support, and can help galvanize real action.

It's 2020, and it's about fucking time this fucking racist shit stopped already.

How to make "git init" use "default" as the default branch name instead of "master" 

@Coffee show support for what? you don't think it is a bit absurd?

How to make "git init" use "default" as the default branch name instead of "master" 

@mister_monster You know what's absurd? That racism is still alive and well in 2020.

Follow

How to make "git init" use "default" as the default branch name instead of "master" 

@Coffee that's true. But is the term "master" racist? I don't see it. This to me is a crusade and that's doubleplusbad.

How to make "git init" use "default" as the default branch name instead of "master" 

@mister_monster It does come from master/slave, via bitkeeper:

mail.gnome.org/archives/deskto

Even if it isn't directly and obviously racist, it's a bad name for the thing, and if changing it is easy and makes some people happy, why not do it? I already spent 300x more energy looking stuff up and discussing this with you, than on the actual change.

How to make "git init" use "default" as the default branch name instead of "master" 

@mister_monster Anyway, if you wish to discuss this further, have a look at this thread:

mastodon.social/@fribbledom/10

How to make "git init" use "default" as the default branch name instead of "master" 

@Coffee yeah I saw that thread, I just hadn't really discussed it that much.

How to make "git init" use "default" as the default branch name instead of "master" 

@Coffee alright, well I want to know one thing from you, do you think I am a morally inferior person for being in disagreement with you about this?

How to make "git init" use "default" as the default branch name instead of "master" 

@mister_monster I'm not of a fan of the mindset that leads to such thoughts in the first place. We're all humans here.

Sign in to participate in the conversation
Mastodon 🔐 privacytools.io

Fast, secure and up-to-date instance. PrivacyTools provides knowledge and tools to protect your privacy against global mass surveillance.

Website: privacytools.io
Matrix Chat: chat.privacytools.io
Support us on OpenCollective, many contributions are tax deductible!