Professional Development · IT & Digital · Module 10 — Undoing Changes and History Management

Undoing Changes — revert, reset, and restore

4 Abschnitte1 Karteikarten-Decks1 Quizze

The three main undo mechanisms in Git: git revert (safe, creates a new commit), git reset (moves HEAD — soft, mixed, hard modes), and git restore (discards working tree changes without touching history) — when to use each and the safety implications.

Inhaltsübersicht

  • The Three Undo Mechanisms — An Overview
  • git revert — Safe Undo for Public History
  • git reset — Moving HEAD (Soft, Mixed, Hard)
  • git restore — Discarding Working Tree Changes
Diagram showing Git's three areas — working tree, index, and repository — with arrows indicating how revert, reset, and restore interact with each area
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