diff options
author | Amin Bandali <bandali@gnu.org> | 2022-11-19 22:15:37 -0500 |
---|---|---|
committer | Amin Bandali <bandali@gnu.org> | 2022-11-19 22:15:37 -0500 |
commit | 093efbaf0b2d237e6d552738da89c7752c319475 (patch) | |
tree | e98d57a075ece1c5ea8a703d3f3091f367554ac0 /.config/git | |
parent | b5dea93399fd4df7089ad90b6e2961d92f67eb5a (diff) | |
download | configs-093efbaf0b2d237e6d552738da89c7752c319475.tar.gz configs-093efbaf0b2d237e6d552738da89c7752c319475.tar.xz configs-093efbaf0b2d237e6d552738da89c7752c319475.zip |
* .config/git/config: Set defaultBranch to main.
Supported as of git 2.28. The previous approach of using a template
directory would work on a wider range of older git versions, but it
would result in git not creating any files/directories (like hooks/)
in a repo's .git directory e.g. after clones or initializations.
Diffstat (limited to '')
-rw-r--r-- | .config/git/config | 2 | ||||
-rw-r--r-- | .config/git/template/HEAD | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/.config/git/config b/.config/git/config index 7db0f89..afa03c0 100644 --- a/.config/git/config +++ b/.config/git/config @@ -70,4 +70,4 @@ fsckObjects = true [init] - templateDir = ~/.config/git/template + defaultBranch = main diff --git a/.config/git/template/HEAD b/.config/git/template/HEAD deleted file mode 100644 index 6c4e0e7..0000000 --- a/.config/git/template/HEAD +++ /dev/null @@ -1 +0,0 @@ -ref: refs/head/main |