Command Palette

Search for a command to run...

Hectal
Phase 5Advanced6 of 9 in Git

Rewriting History Safely

Amend, cherry-pick, reflog, and force-push — the tools that touch history directly, and the exact rules that keep them safe instead of catastrophic.

This phase covers Git's most powerful — and most feared — tools. Each one is genuinely safe once you understand exactly what it does and follow one consistent rule: never rewrite history that's already been shared. Reflog, in particular, is the safety net that makes most 'I think I just destroyed my work' moments completely recoverable.

0/4 · 0%
4 topics ~56 min 7 code blocks & diagrams
Start with the first topic