Git Happens or How to fix common git mistakes
summary
Shows concrete fixes with a live repo: undo unstaged edits with git checkout -- <file>, combine staged changes into the previous commit with git commit --amend, rewrite older commits with git rebase -i to drop or squash a bad change, and recover after a disastrous git reset --hard using git reflog plus git cherry-pick. Demos modify a small counter file, intentionally add a stray cat image, and then successfully remove or restore commits so history and remote state end up clean.
AI-written summary · about
chapters (9)
- 0:00Introduction
- 0:33My development experience
- 1:51What is Git
- 2:53Benefits of Git
- 6:11Undo local changes
- 8:54Git commit amend
- 12:42Git rebase
- 18:03Git reset
- 22:15Git reflog








