From 60bcdd96fbee538a543005df4d68799d7d4e1693 Mon Sep 17 00:00:00 2001 From: Arnout Engelen Date: Sat, 14 Feb 2026 15:28:26 +0100 Subject: [PATCH] Add slightly more background on the difference between main and master Towards #1904 --- book/02-git-basics/sections/recording-changes.asc | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/book/02-git-basics/sections/recording-changes.asc b/book/02-git-basics/sections/recording-changes.asc index 8bcd785fe..88df03b18 100644 --- a/book/02-git-basics/sections/recording-changes.asc +++ b/book/02-git-basics/sections/recording-changes.asc @@ -38,11 +38,9 @@ For now, that branch is always `master`, which is the default; you won't worry a [NOTE] ==== -GitHub changed the default branch name from `master` to `main` in mid-2020, and other Git hosts followed suit. -So you may find that the default branch name in some newly created repositories is `main` and not `master`. -In addition, the default branch name can be changed (as you have seen in <>), so you may see a different name for the default branch. - -However, Git itself still uses `master` as the default, so we will use it throughout the book. +Mid-2020, the Git project [started the discussion](https://lore.kernel.org/git/CAOAHyQwyXC1Z3v7BZAC+Bq6JBaM7FvBenA-1fcqeDV==apdWDg@mail.gmail.com/) on moving away from `master` as the default branch name. Git hosts such as GitHub changed the default branch name from `master` to `main` and other Git hosts followed suit. Starting from version 3.0, git itself also defaults to `main`. +This means you may find that the default branch name in some older repositories is `master` and not `main`. +As the default branch name can be changed (as you have seen in <>), you may see a different name for the default branch. ==== Let's say you add a new file to your project, a simple `README` file.