git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Keeping the original init.defaultBranch config value

From
Peter Hadlaw <hadlawp@gmail.com>
Date
Nov 18, 2020, 16:46 UTC
Message-ID
<CABrPy+GrSB87mFm5tXsXkC+OKg6NBxUJA5b0NYsa18a8EbcrNw@mail.gmail.com>
Hello,

Just wanted to confirm that in order to keep new repositories initializing with `master` as the default branch the command would be:

``` git config --global init.defaultBranch master ```

Regards, Peter

Next: Junio C Hamano
Message 1 of 3 in “Keeping the original init.defaultBranch config value”
  1. Peter HadlawNov 18, 2020
  2. Re* Keeping the original init.defaultBranch config valueJunio C Hamano, Nov 18, 2020
  3. Johannes SchindelinNov 22, 2020

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.