Professional Development · IT & Digital · Module 4 — Working with Commits

Staging Selectively — Hunks and Interactive Mode

4 Abschnitte1 Karteikarten-Decks1 Quizze

How to stage partial changes using git add -p (patch mode) and git add -i (interactive mode), enabling atomic commits that group logically related changes — even when multiple changes touch the same file.

Inhaltsübersicht

  • The Problem with Staging Entire Files
  • Patch Mode — git add -p
  • Interactive Mode — git add -i and Beyond
  • Summary and References
Illustration of Git's three areas: working directory, staging area (index), and repository, with arrows showing the flow of changes
Pixabay – Pixabay License

📚 Vollständiges Lernmaterial mit 4 Abschnitten, Karteikarten und Quizzen verfügbar nach Anmeldung.

Jetzt kostenlos lernen →

Related Topics

Interaktiv lernen mit Karteikarten & Quizzen

Melde dich an und lerne Git — Version Control in Practice mit intelligenten Wiederholungen, Quizzen und KI-Lernhilfen. 7 Tage kostenlos.

Kostenlos testen