[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: generating a git repo: main instead of master
From: |
tomas |
Subject: |
Re: generating a git repo: main instead of master |
Date: |
Sun, 13 Nov 2022 10:27:06 +0100 |
On Sun, Nov 13, 2022 at 09:38:16AM +0100, Uwe Brauer wrote:
> >>> "EZ" == Eli Zaretskii <eliz@gnu.org> writes:
[...]
> > If you want "master" to be the default, then from the shell prompt, do
> > the below once:
>
> > $ git config --global init.defaultBranch main
>
> That is a bit too much, maybe since other public git servers still stick
> to master (bitbucket I think)
That shouldn't be an issue. This only sets the "default" branch when you
create a repo from scratch.
Choosing another default than "master" might confuse some people using
a very old git version [1]. But that's nothing unsurmountable.
Cheers
[1]
https://stackoverflow.com/questions/18726037/what-determines-default-branch-after-git-clone
--
t
signature.asc
Description: PGP signature
- generating a git repo: main instead of master, Uwe Brauer, 2022/11/13
- Re: generating a git repo: main instead of master, Eli Zaretskii, 2022/11/13
- Re: generating a git repo: main instead of master, Peter Hardy, 2022/11/13
- Re: generating a git repo: main instead of master, Teemu Likonen, 2022/11/13
- Re: generating a git repo: main instead of master, tomas, 2022/11/13
- Re: generating a git repo: main instead of master, Jean Louis, 2022/11/13