Skip to content

Commit 60bcdd9

Browse files
committed
Add slightly more background on the difference between main and master
Towards #1904
1 parent 55b541e commit 60bcdd9

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

book/02-git-basics/sections/recording-changes.asc

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,9 @@ For now, that branch is always `master`, which is the default; you won't worry a
3838

3939
[NOTE]
4040
====
41-
GitHub changed the default branch name from `master` to `main` in mid-2020, and other Git hosts followed suit.
42-
So you may find that the default branch name in some newly created repositories is `main` and not `master`.
43-
In addition, the default branch name can be changed (as you have seen in <<ch01-getting-started#_new_default_branch>>), so you may see a different name for the default branch.
44-
45-
However, Git itself still uses `master` as the default, so we will use it throughout the book.
41+
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`.
42+
This means you may find that the default branch name in some older repositories is `master` and not `main`.
43+
As the default branch name can be changed (as you have seen in <<ch01-getting-started#_new_default_branch>>), you may see a different name for the default branch.
4644
====
4745

4846
Let's say you add a new file to your project, a simple `README` file.

0 commit comments

Comments
 (0)