unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Uwe Brauer <oub@mat.ucm.es>
To: help-gnu-emacs@gnu.org
Subject: Re: generating a git repo: main instead of master
Date: Sun, 13 Nov 2022 09:43:23 +0100	[thread overview]
Message-ID: <877czzdz2s.fsf@mat.ucm.es> (raw)
In-Reply-To: Y3CrzM13qfmy6GFw@tuxteam.de

[-- Attachment #1: Type: text/plain, Size: 1456 bytes --]

>>>   <tomas@tuxteam.de> writes:

> On Sun, Nov 13, 2022 at 09:03:25AM +0100, Uwe Brauer wrote:
>> 
>> Hi
>> 
>> It seems that more and more public repositories expect that the
>> principal git branch should be «main» instead of «master»
>> 
>> 
>> However, the following steps in emacs lead to a git repository, where
>> the principal branch is master instead of main.

> You can change the master branch name to main with

>   git branch -m master main

> (think "move"). It is polite to coordinate with other people who
> might have cloned your repo :)

Yeah, I find this all a bit messy to be honest. I'd prefer there would
be a common standard [1]

> To change the default at git init

>   git config --global init.defaultBranch main

> (git >= 2.28)

Oh I am still using 2.7.2 oh and also the command does not return error
it also does not work... time to upgrade!?

Uwe 
> Cheers


Footnotes:
[1] (no flamewar, but mercurial called its principal branch default
     right from the beginning, although I did not like the name, I do
     appreciate it now)

-- 
Warning: Content may be disturbing to some audiences
I strongly condemn Putin's war of aggression against the Ukraine.
I support to deliver weapons to Ukraine's military. 
I support the ban of Russia from SWIFT.
I support the EU membership of the Ukraine. 
https://addons.thunderbird.net/en-US/thunderbird/addon/gmail-conversation-view/

[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 5673 bytes --]

  reply	other threads:[~2022-11-13  8:43 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
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 [this message]
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=877czzdz2s.fsf@mat.ucm.es \
    --to=oub@mat.ucm.es \
    --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).