Follow

make 'git init' produce repos with an initial branch named 'main' not 'master' 

t=~/.config/git/template/
mkdir -p $t
git config --global init.templateDir $t
echo ref: refs/heads/main > $t/HEAD

Sign in to participate in the conversation
Tiny Tilde Website

ttw is the unofficial Mastodon instance of tilde.town. We're only smol, but we're friendly. Please don't be a dick.