Git Stash

Save, list, apply, and drop Git stash entries with untracked/ignored file support and custom messages.

1|1|Updated Feb 21, 2026
One-click install
npx skills add https://github.com/dtsong/claude-code-windows-setup --skill git-stash
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Git Stash
Source: https://github.com/dtsong/claude-code-windows-setup/tree/main/skills/git-workflows/skills/stash
Command: npx skills add https://github.com/dtsong/claude-code-windows-setup --skill git-stash

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill provides a streamlined way to manage stashed changes in Git, allowing you to save your work temporarily, restore it later, and keep your repository clean.

Core Features & Use Cases

  • Save Changes: Temporarily store uncommitted changes, including untracked files.
  • Restore Changes: Reapply stashed changes to your working directory.
  • List & Inspect: View all stashed changes and their contents.
  • Manage Stashes: Drop or clear individual or all stashes.
  • Use Case: Before pulling updates from a remote repository, you can stash your local work, pull the changes, and then pop your stashed work back, avoiding conflicts and ensuring a smooth workflow.

Quick Start

Use the git stash skill to save your current work with a descriptive message.

Frequently Asked Questions about Git Stash

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

FAQPage Schema
How do I stash uncommitted changes in Git before pulling remote updates?

To stash uncommitted changes in Git before pulling updates, you can save your local work with a descriptive message, pull the remote changes, and then pop the stashed work back. This avoids conflicts and ensures a smooth workflow.

Can I stash untracked and ignored files in Git?

Yes, you can stash untracked and ignored files in Git. This skill supports stashing these files alongside tracked changes with a custom message to preserve your working directory state during context switching.

How do I list and inspect stashed changes in my working directory?

You can list and inspect stashed changes in your working directory by viewing all saved stashes and their contents. This allows you to verify what work is preserved before applying or dropping it.

What is the best way to manage multiple Git stashes?

The best way to manage multiple Git stashes is to save them with custom messages, list them to inspect contents, and individually drop or clear stashes once applied. This keeps your repository clean and organized.

When do I need to use Git stash for temporary work preservation?

You need to use Git stash for temporary work preservation when context switching between tasks or before pulling updates from a remote repository. It allows you to save uncommitted changes and restore them later without losing progress.

How do I drop or clear individual Git stashes after applying them?

To drop or clear individual Git stashes after applying them, use the manage stashes feature to remove specific stashes or clear all of them. This helps maintain a clean repository by discarding obsolete saved changes.