From b9347cae9eb2de82845de6c579a1f699dd635ee1 Mon Sep 17 00:00:00 2001 From: Amin Bandali Date: Fri, 29 Apr 2022 19:34:52 -0400 Subject: git: use 'main' for default branch name for new repos --- .config/git/config | 2 ++ .config/git/template/HEAD | 1 + 2 files changed, 3 insertions(+) create mode 100644 .config/git/template/HEAD 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 -- cgit v1.2.3-60-g2f50