Note that master is not always the default - #1729
Merged
Merged
Conversation
A note that default branch name is likely different. A different branch name would be very confusing to a beginner, especially when the book asserts that the default is master.
Contributor
|
I found a related issue: #1462 GitHub and GitHub now create a I guess when the book was written the |
ben
approved these changes
Sep 14, 2022
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes
Add an id to Ch01 > First-time Git Setup > Your default branch name.
Add a note in Ch02 > Recording Changes to the Repository > Checking the Status of Your Files, directly after the paragraph that says:
The note points out that remote repositories are likely to have a different default branch name.
Context
GitHub in mid-2020 changed the default branch name from
mastertomain, and so did other Git hosts.And many developers use an even different default branch name like
devordevelopor something else.A beginner might be very confused when seeing a repo whose default branch is not
master. So I think it worth pointing out that explicitly.I mean, the book asserts that the default branch is always
master, when explaining thegit statusoutput in a freshly cloned repo. That repo is libgit2, whose default branch ismain…