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

Rewriting History — amend, rebase -i, and squash

4 Abschnitte1 Karteikarten-Decks1 Quizze

Local history cleanup tools: git commit --amend for fixing the last commit, git rebase -i (interactive rebase) for reordering, editing, squashing, and dropping commits — with the critical rule about never rewriting shared/public history.

Inhaltsübersicht

  • Why Rewrite History — and When It Is Acceptable
  • git commit --amend — Fixing the Last Commit
  • git rebase -i — Interactive History Cleanup
  • Summary and References
Diagram showing a commit graph before and after interactive rebase, with squash and reorder operations transforming multiple WIP commits into clean atomic commits
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