Stash

Stash Git changes with messages and restore them with apply or pop.

7|1|Updated Jul 12, 2026
One-click install
npx skills add https://github.com/julianobarbosa/claude-code-skills --skill stash
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Stash
Source: https://github.com/julianobarbosa/claude-code-skills/tree/main/skills/Git-skill
Command: npx skills add https://github.com/julianobarbosa/claude-code-skills --skill stash

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill explains how to stash changes to switch context quickly without committing partial work.

Core Features & Use Cases

  • Stashing basics: Stash with messages and include untracked files.
  • Apply and pop: Restore stashed work with options to keep changes staged.
  • Edge cases: Interactive stash with selection and stash branching.

Quick Start

Save current changes with a descriptive stash message before switching branches.

Frequently Asked Questions about Stash

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I stash Git changes without committing?

Stashing temporarily saves your uncommitted changes so you can switch branches or contexts without losing work. Use `git stash` with a descriptive message to preserve staged and unstaged modifications, then restore them later with `git stash pop` or `git stash apply`.

Can I stash untracked files in Git?

By default, `git stash` only saves tracked files. To include untracked files, use `git stash -u` (or `--include-untracked`). This captures new files alongside your staged and unstaged changes in a single stash entry.

What's the difference between git stash pop and git stash apply?

Both restore stashed changes, but `pop` removes the stash entry after applying it, while `apply` keeps it. Use `pop` for one-time restoration; use `apply` to restore the same stash multiple times across branches.

How do I create a branch from a stashed change?

Git stash branching lets you apply a stash to a new branch automatically, avoiding merge conflicts. Use `git stash branch <branch-name>` to create and switch to a branch with your stashed work restored.

Can I selectively stash parts of my changes?

Interactive stashing with `git stash -p` (or `--patch`) lets you review and choose individual hunks to stash, leaving others in your working directory. This keeps related work staged while deferring partial changes.

Why would I stash instead of committing?

Stashing is ideal for temporary context switches—saving work-in-progress without polluting commit history. Use it to quickly grab another branch or apply urgent fixes, then resume incomplete work exactly where you left off.