[7.8 Git Tools - Advanced Merging -- Reverse the commit ] may has some error description

Open Beginner friendly
#1,619 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
68/100
Issue type
Documentation
Clarity
Clearly specified
Activity status
Stale
Tech stack
git
Domain
documentation

Research direction

Open the linked Pro Git page and go to Git Tools - Advanced Merging, under “Reverse the commit.” Compare the sentence about the merge commit’s first parent with the described behavior, then correct the wording so it refers to C6 rather than HEAD; the documentation is done when the published text is accurate.

Written by the indexing model from the issue text.

Description

Which version of the book is affected?
all

Describe the bug:
the description in [7.8 Git Tools - Advanced Merging -- Reverse the commit ] is:
"The -m 1 flag indicates which parent is the “mainline” and should be kept. When you invoke a merge into HEAD (git merge topic), the new commit has two parents: the first one is HEAD (C6)";
I think after the merge, this first parent is C6, right now the HEAD refs to M(the commit refs to merge), not C6

Steps to reproduce:

  1. Go to https://git-scm.com/book/en/v2/Git-Tools-Advanced-Merging
  2. Scroll down to 'Reverse the commit'
  3. you'll see what i descibed

Expected behavior:
where it said "When you invoke a merge into HEAD (git merge topic), the new commit has two parents: the first one is HEAD (C6)" should be "When you invoke a merge into HEAD (git merge topic), the new commit has two parents: the first one is C6"

Screenshots:
image

Dominant language
CSS
Stars
6.6k
Forks
2.1k
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from progit/progit2

All issues in progit/progit2

Similar issues

More Documentation issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.