progit / progit2

Pro Git 2nd Edition
Other
5.9k stars 1.94k forks source link

rack_remote/master have changed to rack_remote/main #1967

Open Sherry520 opened 3 months ago

Sherry520 commented 3 months ago

There's no existing/similar bug report.

This report is about a single actionable bug.

This report is about the ProGit book, version 2, English language.

Bug covers book website/pdf

Problem is present in the Pro Git book on the website?

Which version of the book is affected?

Source files

Describe the bug:

In Git Tools -> Advanced Merging -> Subtree Merging Code in the example: image

git checkout -b rack_branch rack_remote/master error occured: fatal: 'rack_remote/master' is not a commit and a branch 'rack_branch' cannot be created from it

Steps to reproduce:

  1. git remote add rack_remote https://github.com/rack/rack
  2. git fetch rack_remote --no-tags
  3. git checkout -b rack_branch rack_remote/master

Expected behavior:

image

Screenshots:

No response

Additional context:

The reason is that rack_remote/master has changed to rack_remote/main image

Device

No response

Operating system

No response

Browser/application + version

No response