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.
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 I'm not of a fan of the mindset that leads to such thoughts in the first place. We're all humans here.