help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: generating a git repo: main instead of master


From: Uwe Brauer
Subject: Re: generating a git repo: main instead of master
Date: Sun, 13 Nov 2022 09:38:16 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

>>> "EZ" == Eli Zaretskii <eliz@gnu.org> writes:

>> From: Uwe Brauer <oub@mat.ucm.es>
>> Date: Sun, 13 Nov 2022 09:03:25 +0100
>> 
>> 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
>> `----

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



> Alternatively, after the initial commit do

>   C-x v r main RET

Thanks!

-- 
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: smime.p7s
Description: S/MIME cryptographic signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]