Git Cheatsheet - Quick Git Command Reference
Quick reference for common Git commands. Search, copy, and use Git commands instantly.
git stash
Temporarily save working directory changes
Syntax
git stash [push] [options]Common Options
| Option | Description |
|---|---|
push | Stash current changes |
push -m <msg> | Stash with description message |
push -u | Stash including untracked files |
push -a | Stash all files including ignored |
list | List all stashes |
show | Show latest stash changes |
pop | Apply and drop latest stash |
apply [stash] | Apply stash without dropping |
drop [stash] | Drop specific stash |
clear | Clear all stashes |
branch <name> | Create new branch from stash |
Examples
git stashStash working directory changes
git stash push -m "WIP: login feature"Stash with message
git stash popApply latest stash and remove
git stash listList all stashes
git stash apply stash@{1}Apply specific stash without dropping
Related Commands
Related Tools
More Code & Dev Tools
Color Converter
Free online color converter. Convert between HEX, RGB, HSL, ...
cURL Command Builder
Build cURL commands visually. Set URL, method, headers, body...
Systemd Service Generator
Generate systemd service unit files visually. Configure Exec...
Color Palette Generator
Generate harmonious color palettes online. Create color sche...
SQL Formatter
Format and beautify SQL queries online. Improve SQL readabil...
Color Contrast Checker
Check color contrast ratios for WCAG compliance. Ensure acce...
Port Checker
Check if a port is open online. Test port availability and c...
CSS Formatter
Format and minify CSS online. Beautify CSS code or compress ...
IP Calculator
Calculate IP ranges, subnet masks, and CIDR notation. Networ...
Docker Compose Generator
Generate Docker Compose YAML files visually. Add services, c...
WebSocket Tester
Test WebSocket connections and messages in real-time. Connec...
DNS Lookup
Query DNS records online. Look up A, AAAA, CNAME, MX, TXT, N...