Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions book/02-git-basics/sections/recording-changes.asc
Original file line number Diff line number Diff line change
Expand Up @@ -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 <<ch01-getting-started#_new_default_branch>>), 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 <<ch01-getting-started#_new_default_branch>>), 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.
Expand Down