Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

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

Aperta Adatta ai principianti
#2,087 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
72/100
Tipo di issue
Documentazione
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
git
Ambito
documentation

Direzione di ricerca

Inizia con il Capitolo 2, Sezione 4, «Undoing Things», e confronta i relativi comandi per rimuovere dallo staging con le indicazioni attuali di Git. Aggiorna i comandi del manuale per chiarire il metodo moderno per rimuovere dallo staging e mantieni una breve nota sull’uso legacy di git reset; il lavoro è completato quando la sezione riflette coerentemente le indicazioni previste per i comandi.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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

Lingua principale
CSS
Stelle
6.6k
Fork
2.1k
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di progit/progit2

Tutte le issue di progit/progit2

Issue simili

Altre issue su Documentation

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.