unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: "Björn Bidar" <bjorn.bidar@thaodan.de>
To: help-gnu-emacs@gnu.org
Subject: Re: generating a git repo: main instead of master
Date: Sun, 13 Nov 2022 16:50:41 +0200	[thread overview]
Message-ID: <878rkeucvy.fsf@thaodan.de> (raw)
In-Reply-To: <87fsendzbb.fsf@mat.ucm.es> (Uwe Brauer's message of "Sun, 13 Nov 2022 09:38:16 +0100")

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



  parent reply	other threads:[~2022-11-13 14:50 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-13  8:03 generating a git repo: main instead of master Uwe Brauer
2022-11-13  8:24 ` Eli Zaretskii
2022-11-13  8:25   ` Eli Zaretskii
2022-11-13  8:38   ` Uwe Brauer
2022-11-13  9:27     ` tomas
2022-11-13 14:50     ` Björn Bidar [this message]
2022-11-13  8:26 ` Peter Hardy
2022-11-13  8:32 ` Teemu Likonen
2022-11-13  8:33 ` tomas
2022-11-13  8:43   ` Uwe Brauer
2022-11-13  9:22     ` tomas
2022-11-13  9:31 ` Jean Louis

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=878rkeucvy.fsf@thaodan.de \
    --to=bjorn.bidar@thaodan.de \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).