[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: generating a git repo: main instead of master
From: |
Eli Zaretskii |
Subject: |
Re: generating a git repo: main instead of master |
Date: |
Sun, 13 Nov 2022 10:24:15 +0200 |
> 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
Alternatively, after the initial commit do
C-x v r main RET