From: Amin Bandali Date: Fri, 29 Apr 2022 23:34:52 +0000 (-0400) Subject: git: use 'main' for default branch name for new repos X-Git-Url: https://git.shemshak.org/~bandali/configs/commitdiff_plain/b9347cae9eb2de82845de6c579a1f699dd635ee1?ds=inline;pf=~bandali git: use 'main' for default branch name for new repos --- diff --git a/.config/git/config b/.config/git/config index 04a83fb..35aba9d 100644 --- a/.config/git/config +++ b/.config/git/config @@ -64,3 +64,5 @@ [transfer] fsckObjects = true +[init] + templateDir = ~/.config/git/template diff --git a/.config/git/template/HEAD b/.config/git/template/HEAD new file mode 100644 index 0000000..6c4e0e7 --- /dev/null +++ b/.config/git/template/HEAD @@ -0,0 +1 @@ +ref: refs/head/main