Skip to main content

Recovery with Reset, Stash, and Reflog

This generated surface maps a learner-facing curriculum unit to its canonical source routes.

Curriculum surface​

  • Open learner-facing unit
  • Curriculum path: content/curriculum/foundations/pre-semester-launchpad/module-03-git-fundamentals/concepts/cluster-03-professional-practices/08-recovery-with-reset-stash-and-reflog-supporting.md
  • App: foundations
  • Semester: pre-semester-launchpad
  • Module: module-03-git-fundamentals
  • Unit kind: concept
  • Curation level: module_curated

Learning objectives​

  • Explain Recovery with Reset, Stash, and Reflog in the language of the current curriculum, not just the source book.
  • Apply Recovery with Reset, Stash, and Reflog to one concrete learner task or example inside this semester.
  • Use pro-git as a selective source of truth when the learner-facing explanation is not enough.

Prerequisites​

  • Comfort navigating files and editing text from Module 02.
  • A local repository or sandbox where mistakes are acceptable.

Source books​

  • pro-git

Source routes​

Pro Git​

  • /books/pro-git via Pro Git chunk 059, Pro Git chunk 061, Pro Git chunk 068, Pro Git overview

Supporting curriculum routes​

No supporting curriculum routes linked yet.

External enrichment​

  • Git Documentation: git-reflog (official_docs_companion) - Useful when the learner needs to recover state safely and should rely on exact command behavior.
  • Git Documentation: git-reset (official_docs_companion) - Important when recovering work, because vague summaries are less useful than the real command semantics.

AI companion modes​

  • Explain simply
  • Socratic tutor
  • Quiz me
  • Challenge my understanding
  • Diagnose my confusion

Source-of-truth note​

This teaching unit is learner-facing guidance. Its canonical source backbone is the referenced book pro-git, and outside material should only clarify or strengthen that backbone.