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: Peter Hardy
Subject: Re: generating a git repo: main instead of master
Date: Sun, 13 Nov 2022 19:26:25 +1100
User-agent: Cyrus-JMAP/3.7.0-alpha0-1115-g8b801eadce-fm-20221102.001-g8b801ead


On Sun, 13 Nov 2022, at 7:03 PM, Uwe Brauer wrote:
> How can I change this behavior to have 
> ,----
> | 
> | * commit 9b1b90c4bb29dbb50320b71cf182e6ad46ab3ac5 (HEAD -> main)

By configuring git to name the default branch `main`:

; git config --global init.defaultBranch main

man git-config has more details

-- 
Peter



reply via email to

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