[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: generating a git repo: main instead of master
From: |
Björn Bidar |
Subject: |
Re: generating a git repo: main instead of master |
Date: |
Sun, 13 Nov 2022 16:50:41 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
Uwe Brauer <oub@mat.ucm.es> writes:
>> $ 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)
They usually pick what is the first branch pushed, e.g. on my Gitea I
pushed the borg branch for emacs.d first and than it did thought I use
borg as master branch.
You can change the default branch in the setting of the relevant forge.
You can do this either for your own account, for your organization or
instance (if you run your own).
For example for Gitea the global option to set the default branch is this one:
https://docs.gitea.io/en-us/config-cheat-sheet/#repository-repository
Br,
Björn
- 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