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:
parent
b6a3906865
commit
346960f313
|
@ -92,7 +92,10 @@
|
||||||
fetch.prune = true;
|
fetch.prune = true;
|
||||||
grep.lineNumber = true;
|
grep.lineNumber = true;
|
||||||
help.autocorrect = "1";
|
help.autocorrect = "1";
|
||||||
init.templatedir = "~/.git_template";
|
init = {
|
||||||
|
defaultBranch = "main";
|
||||||
|
templatedir = "~/.git_template";
|
||||||
|
};
|
||||||
merge.ff = "only";
|
merge.ff = "only";
|
||||||
rebase = {
|
rebase = {
|
||||||
autosquash = true;
|
autosquash = true;
|
||||||
|
|
Loading…
Reference in a new issue