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

未关闭 适合新手
#1,619 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
1/5
预计耗时
1 小时以内
新手友好度
68/100
Issue 类型
文档
描述清晰度
描述清楚
活跃度
停滞
技术栈
git
领域
documentation

调研方向

打开链接的 Pro Git 页面,转到“Git Tools - Advanced Merging”下的“Reverse the commit.”。将关于合并提交的第一个父提交的句子与所描述的行为进行比较,然后修正文案,使其指向 C6 而不是 HEAD;发布的文本准确无误后,文档工作即完成。

由索引模型根据 Issue 内容生成。

描述

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

主要语言
CSS
星标
6.6k
派生
2.1k
PR 合并指标
30 天内没有已合并 PR

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

progit/progit2 的其他 Issue

查看 progit/progit2 的全部 Issue

相似的 Issue

更多 Documentation Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。