Recovery and Safe Undo
Use this page when you need a safer mental model for undo and recovery.
Core Ideas
resetcan affect references, index, and working treestashshelves unfinished work temporarily- reflog records local reference movement
- recovery gets easier when you inspect first and act second