~/talk

Undoing Things and saving your Neck with Git

links:none on file
slides:none on file

A practical tour of 16 real undo scenarios shows exact commands, surprising caveats and when history gets rewritten. Examples include fixing the last commit with git commit --amend, undoing one bad commit with git revert, wiping later commits with git reset --hard or keeping working changes with mixed reset, restoring files with git checkout <hash> -- file, recovering deleted branches via git reflog, and cleaning history with interactive rebase (squash, fixup, split). Tower GUI demos accompany the CLI.

AI-written summary · about

  1. 0:00Start
  2. 4:27Fixing the Last Commit
  3. 5:33Reverting a commit in the Middle
  4. 10:47Resetting to an Old Revision
  5. 19:14Moving a commit to a New Branch
  6. 21:46Moving a commit to a Different Branch
  7. 24:14Editing Old Commit Messages
  8. 32:38Adding a Change to an Old Commit
  9. 38:01317 Splitting / Editing an Old Commit
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.