Skip to content

Commit 6f02954

Browse files
committed
Fix clash with named anchor ID
Rename the anchor ID [[_default_branch]] to [[_new_default_branch]], updating the reference to it. Fixes asciidoctor build warnings due to pre-existing [[_default_branch]] anchor ID of the same name.
1 parent 7275372 commit 6f02954

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

book/01-introduction/sections/first-time-setup.asc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ You may find, if you don't setup your editor like this, you get into a really co
8484
An example on a Windows system may include a prematurely terminated Git operation during a Git initiated edit.
8585
====
8686

87-
[[_default_branch]]
87+
[[_new_default_branch]]
8888
==== Your default branch name
8989

9090
By default Git will create a branch called _master_ when you create a new repository with `git init`.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ For now, that branch is always `master`, which is the default; you won't worry a
4040
====
4141
GitHub changed the default branch name from `master` to `main` in mid-2020, and other Git hosts followed suit.
4242
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#_default_branch>>), so you may see a different name for the default branch.
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.
4444
4545
However, Git itself still uses `master` as the default, so we will use it throughout the book.
4646
====

0 commit comments

Comments
 (0)