feat(git): set the default branch name for new

...repositories

When running `git init` to initialise a new repository, set the default
branch name that will be used. In this case, the branch name will be
`main` instead of the old default, `master`.
This commit is contained in:
Oliver Davies 2023-07-25 20:24:47 +01:00
parent b6a3906865
commit 346960f313

View file

@ -92,7 +92,10 @@
fetch.prune = true;
grep.lineNumber = true;
help.autocorrect = "1";
init.templatedir = "~/.git_template";
init = {
defaultBranch = "main";
templatedir = "~/.git_template";
};
merge.ff = "only";
rebase = {
autosquash = true;