WEEK 7 · LESSON 9 · TOPIC 9 OF 10 · Trade-Offs and Limitations

Trade-Offs and Limitations

Lesson progress

0% Complete

SECTION 1 OF 1

In this topic · 1 sections
  1. Overview

Overview

A stash is temporary storage, not a normal commit in project history. It is useful for interrupted work, not as a replacement for meaningful commits.

Pop removes the stash entry after restoration. If you intend to keep a reusable stored copy, use apply instead.

Multiple stashes are ordered, and the most recent one is restored first by default. When the latest stash is not the intended one, select a specific identifier.

Stashing solves branch-switching pressure, but the work still needs to be completed, staged, and committed later if it should become part of the repository history.