Update Chapter 2.4 "Undoing Things" to mention git rm --cached for unstaging files

オープン 初心者向け
#2,087 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
72/100
issue の種類
ドキュメント
明瞭さ
おおむね明確
活発さ
静か
技術スタック
git
領域
documentation

調査の方向性

第2章第4節「Undoing Things」から始め、そのアンステージ用コマンドを現在のGitのガイダンスと比較します。教科書のコマンドを更新し、現代的なアンステージ方法を明確にするとともに、従来のgit resetの使用について簡潔な注記を残します。セクションが意図したコマンドのガイダンスを一貫して反映すれば完了です。

索引モデルが issue の本文から書いたものです。

説明

bug
There's no existing/similar bug report.
  • I have searched the existing issues
This report is about a single actionable bug.
  • I'm reporting a single actionable bug
This report is about the ProGit book, version 2, English language.
  • This bug is not about a translation or old version
Bug covers book website/pdf
  • I confirm the bug is about the book as found on the website/pdf
Problem is present in the Pro Git book on the website?
  • This bug also affects the Pro Git book as published on the website.
Which version of the book is affected?

I don't know

Describe the bug:

While reading through the book, I noticed that Chapter 2, Section 4 ("Undoing Things") heavily relies on git reset HEAD ... to demonstrate how to unstage a file. While git reset still works for backwards compatibility, modern versions of Git (v2.23+) now explicitly output (use "git rm --cached ..." to unstage) when running git status. To ensure the text aligns with modern terminal hints and best practices, it would be highly beneficial to update this section to prioritize git restore --staged as the primary method for unstaging, while keeping a brief note about legacy git reset functionality.

Expected behavior:

Commands to be updated in the textbook

主要言語
CSS
スター
6.6k
フォーク
2.1k
PR マージ指標
30日以内にマージされた PR はありません

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

progit/progit2 のほかの issue

progit/progit2 の issue をすべて見る

似ている issue

Documentation の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。