git: Add an init template, use it to create the main branch

See
56d614f806.

> This change adds a HEAD file to the Git template with a different ref.
This means that new repositories will commit to a "main" branch by
default instead.
This commit is contained in:
Oliver Davies 2020-07-20 01:47:30 +01:00
parent 0f797c6ffe
commit b35d9a938a
4 changed files with 6 additions and 7 deletions

View file

@ -0,0 +1 @@
ref: refs/heads/main

View file

@ -100,6 +100,9 @@
[include]
path = ~/.gitconfig.local
[init]
templatedir = ~/.git_template
[merge]
ff = only