Welcome to the Advanced Git module. Here, you will move beyond add, commit, and push to master the tools that allow you to rewrite history, recover lost work, and debug complex regressions.
Module Contents
1. Interactive Rebase
Learn how to surgically alter your commit history. Squash work-in-progress commits, reorder features, and fix typos using git rebase -i. Includes an Interactive Rebase Simulator.
2. Rewriting History
Understand the differences between git reset (–soft, –mixed, –hard) and git revert. Learn when to rewrite history and when to preserve it. Includes a Reset Visualizer.
3. Reflog and Recovery
Discover Git’s safety net. Learn how to use git reflog to recover “lost” commits and restore deleted branches. Includes a Reflog Explorer.
4. Git Bisect
Stop linear debugging. Use binary search to find the exact commit that introduced a bug in seconds, not hours. Includes a Bisect Simulator.
Review: Advanced Git
Test your knowledge with interactive flashcards and a quick-reference cheat sheet.
Module Chapters
Interactive Rebase
[!NOTE] “History is written by the victors.” — Winston Churchill In Git, history is written by you, using Interactive Rebase.
Start LearningRewriting History
[!NOTE] “To err is human; to git reset is divine.”
Start LearningReflog and Recovery
[!IMPORTANT] Git is very hard to lose data in. If you committed it, you can probably get it back.
Start LearningGit Bisect
[!NOTE] Stop guessing. Start bisecting.
Start LearningModule Review: Advanced Git
Key Takeaways
Start Learning