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

Đang mở Phù hợp với người mới
#1,619 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
1/5
Thời gian dự kiến
Dưới một giờ
Mức phù hợp với người mới
68/100
Loại issue
Tài liệu
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
git
Lĩnh vực
documentation

Hướng nghiên cứu

Mở trang Pro Git được liên kết và đi đến “Git Tools - Advanced Merging”, trong “Reverse the commit.”. So sánh câu nói về parent đầu tiên của merge commit với hành vi được mô tả, sau đó sửa lại cách diễn đạt để câu đó đề cập đến C6 thay vì HEAD; tài liệu được hoàn tất khi văn bản đã xuất bản là chính xác.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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

Ngôn ngữ chính
CSS
Star
6.6k
Fork
2.1k
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của progit/progit2

Tất cả issue của progit/progit2

Issue tương tự

Thêm issue về Documentation

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.