Gitflow
📚Apply a Specific StashEasy+350 XP
Workshop
Scenario reference

Apply a Specific Stash: the situation, step by step

The situation

You have 4 stashes from the past week. You need the one labeled 'WIP: payment flow' — not the most recent.

git stash list shows them. Reference by stash@{N}.

Easy · 3 steps · +350 XP

What you will practice

This scenario walks through 3 steps, in order:

  1. 01List all stashes
  2. 02Inspect the contents of stash 2
  3. 03Apply that specific stash without dropping it
Reveal the step-by-step commands

Try the terminal first — you learn more by doing. When you want to check yourself, here is the command for each step.

  1. 1. List all stashes
    git stash list
  2. 2. Inspect the contents of stash 2
    git stash show -p stash@{2}
  3. 3. Apply that specific stash without dropping it
    git stash apply stash@{2}

Key takeaway

stash list → stash apply stash@{N}. Pop drops; apply keeps it.