Skip to main content

Git Stash Manager

A visual command reference for every git stash operation. Adjust the stash index to instantly update all stash@{N} examples, then copy the exact command you need. No installation required — runs entirely in your browser.

✓ Dynamic stash index — update all examples at once ✓ One-click copy for every command ✓ Covers save, list, apply, delete & branch

Frequently Asked Questions

What is git stash and when should I use it?▼

git stash temporarily shelves changes you have made to your working copy so you can switch context — for example, pull the latest changes or jump to a different branch — without committing incomplete work. When you are ready, you apply the stash to restore your changes.

What is the difference between git stash apply and git stash pop?▼

Both commands restore stashed changes to your working directory. The difference is that git stash pop also removes the stash entry from the list after applying it, while git stash apply leaves the entry in the list so you can apply it again or to multiple branches.

Does git stash save untracked files?▼

By default, git stash only saves tracked files (modified or staged). To include new untracked files use git stash push --include-untracked. To also include files listed in .gitignore, use git stash push --all.

How do I apply a specific stash instead of the most recent one?▼

Run git stash list to see all stash entries with their index numbers (stash@{0}, stash@{1}, etc.). Then use git stash apply stash@{N} or git stash pop stash@{N} to apply the specific entry you want. Use the stash index input at the top of this tool to update all command examples at once.

What does git stash branch do?▼

git stash branch <branch-name> stash@{N} creates a new branch starting from the commit at which the stash was originally created, checks out that branch, and applies the stash to it. If the apply succeeds, the stash is automatically dropped. This is useful when applying a stash would conflict with your current branch.

Share this tool: X / Twitter LinkedIn
✓ 60,000+ developers use DevPlaybook ★★★★★ 4.8 / 5 on Gumroad ✓ MIT licensed · Instant download ✓ No login required

Related Products

on Gumroad

You Might Also Need

More Free Tools

Enjoying this tool? Get more like it.

Weekly developer tool guides, productivity playbooks & AI tricks. Free. No spam.

DevPlaybook Pro 7 days free

Unlock AI-Powered Dev Tools

  • ⚡ AI Code Review, Doc Generator & SQL Builder
  • ⚡ All premium templates & early access
  • ⚡ Member discounts on Gumroad products
Start Free Trial →

$9/mo after trial · Cancel anytime

Want the full toolkit?

Get DevPlaybook Pro

Every template, guide, boilerplate, and automation script in one bundle. 13 premium products — grab them all at once and save big.

$79
$241 separately Save $162 (67% off)
Get DevPlaybook Pro — $79 →

MIT licensed · Instant download · No subscription

See what's included → Browse all deals →