unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* generating a git repo: main instead of master
@ 2022-11-13  8:03 Uwe Brauer
  2022-11-13  8:24 ` Eli Zaretskii
                   ` (4 more replies)
  0 siblings, 5 replies; 12+ messages in thread
From: Uwe Brauer @ 2022-11-13  8:03 UTC (permalink / raw)
  To: help-gnu-emacs


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.

    1. Opening an empty file in an empty directory

    2. Write something and register the file

    3. Chose git

    4. Commit

Voila the result is 
,----
| * commit 9b1b90c4bb29dbb50320b71cf182e6ad46ab3ac5 (HEAD -> master)
|   Author: Uwe Brauer <oub@mat.ucm.es>
|   Date:   Sun Nov 13 09:01:42 2022 +0100
| 
|       First commit
`----

How can I change this behavior to have 
,----
| 
| * commit 9b1b90c4bb29dbb50320b71cf182e6ad46ab3ac5 (HEAD -> main)
|   Author: Uwe Brauer <oub@mat.ucm.es>
|   Date:   Sun Nov 13 09:01:42 2022 +0100
| 
|       First commit
`----

Thanks and regards

Uwe Brauer 

-- 
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/




^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2022-11-13 14:50 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
2022-11-13  9:22     ` tomas
2022-11-13  9:31 ` Jean Louis

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).