Git: Undoing Things and recovering from Mistakes
summary
Covers concrete recovery recipes: use git checkout to discard file edits or restore deleted files, git reset --hard to wipe uncommitted work, git commit --amend to fix the last commit (only if not pushed), and git revert to create a correcting commit without rewriting history. Shows git reflog to recover resets, git cherry-pick to move a commit to another branch, git branch -vv / git log flags to see what will be pushed, and explains Git LFS pointers plus a quick demo with the Tower GUI.
AI-written summary · about
chapters (12)
- 0:00Intro
- 0:37Why Git
- 2:23Undoing local changes
- 7:41Fixing commit mistakes
- 13:54Reverting a commit
- 18:05Forget reset
- 20:50Summary
- 23:48RefLog
- 27:37Commit on the wrong branch
- 32:54Git log command
- 35:45Git LFS
- 39:34Conclusion
related talks
31mGit Happens or How to fix common git mistakes
32mGit, back to the future
43mUndoing Things and saving your Neck with Git
28mLet's "git" it right !
39mGetting out of trouble by understanding Git
41mGetting more from Git
28mHow to Really Get Git
48mBe the .txt you seek: Getting out of trouble by understanding Git
