Repository navigation
Stashes
A stash is a shelf for unfinished work. It takes your uncommitted changes, puts them aside and leaves your files clean, so you can switch branches or pull. Later you bring the changes back.
- Choose Git > Uncommitted Changes > Stash Changes... in the menu bar.
- In the Stash Changes dialog, type a Message so you can recognise it later. It starts as
WIP("work in progress"). - Leave Include untracked files ticked to also put new files that git does not track yet on the shelf. Untick it to stash only changes to tracked files.
- Click Stash.
Your files go back to how they were at the last commit, a note says Changes stashed, and the stash appears in the sidebar. If there is nothing to stash, a note says No local changes to stash instead. When only new files changed and Include untracked files is off, it tells you to turn that on.
The Git menu works on the active repository. To stash another repository without switching, use its ... button in Changes: Stash > Stash keeps new files where they are, and Stash (Include Untracked) stashes them too. Both ask for the message. See Repository Actions.
Open the Branches and Stashes sidebar (Shift+Cmd+E). Stashes are the last section.

A stash under the mouse: its message and the Apply, Pop and Drop buttons.
Each row shows the message and a name like stash@{0}. Git puts the branch in front of your message, so WIP: free shipping threshold stashed on main shows as On main: WIP: free shipping threshold. Hover a long message to read all of it. The newest stash is always stash@{0}; older ones count up. The Stashes heading shows how many there are, and the filter box at the top also searches stash messages.
If git cannot read the stash list, the section stays empty and a note says Could not read stashes with git's message. It shows once, not on every refresh.
Hover a stash to see three buttons in place of its stash@{0} name, or right-click it for the same actions:
- Apply (check mark) puts the changes back into your files and keeps the stash, so you can apply it again elsewhere.
- Pop (up arrow) puts the changes back and removes the stash ("apply and drop"). This is the usual choice.
- Drop (x, or Drop... in the menu) deletes the stash without applying it. You are asked first (Drop Stash), because this cannot be undone.
A note confirms each one, for example Popped stash@{0}. The buttons wait while another operation runs.
You can also bring changes back without the sidebar:
- Git > Uncommitted Changes > Unstash Changes... lists the stashes of the active repository. Pick one, then choose Pop or Apply.
- A repository's ... > Stash submenu in Changes has Apply Latest Stash and Pop Latest Stash for
stash@{0}, and Apply Stash..., Pop Stash... and Drop Stash... with a list to pick from. - Drop All Stashes in the same submenu deletes every stash of that repository, after asking. This cannot be undone.
If the stashed changes clash with changes in your files, git stops with conflicts (a conflict is a spot where both versions changed the same lines). Nibtree opens the Conflicts dialog. See Resolving Conflicts. After a pop that stopped on conflicts, git keeps the stash, so nothing is lost; drop it yourself once you are done.
You are halfway through a free shipping change on main in the storefront repository when a bug report comes in.
- Choose Git > Uncommitted Changes > Stash Changes..., type
WIP: free shipping threshold, and click Stash. - Switch to
fix/tax-rates, fix the bug, commit and push. - Switch back to
main. - Hover On main: WIP: free shipping threshold in the sidebar and click Pop. Your half-done change is back.
- Give stashes clear messages.
WIPis fine for a minute, but after a week you will not remember what it was. - A stash is local to your computer. It is not pushed to the server.
- You can apply a stash on a different branch from the one you stashed on.
- To put aside only some files, use the Shelf instead.
These pages are generated from docs/wiki. To correct something, open a pull request against the source file; edits made here are overwritten.
Using Nibtree
- Getting Started
- Welcome Screen
- Workspaces
- Files Panel
- File Operations
- File Icons
- Rounded Panels
- Editor and Tabs
- Pin Reorder and Wrap Tabs
- Single Tab Title
- Split Editor
- New File and Unsaved Changes
- Unload Hidden Tabs
- Editing Code
- Code Appearance
- Markdown Editor
- Image and PDF Preview
- Search Everywhere
- Recent Files
- Navigation Bar
- Find and Replace
- Changes and Commits
- Sign In Prompts
- Commit Box Layout
- Repository Actions
- Commit Options
- Ignoring Files
- Diffs
- Inline Diffs
- Staging View
- Revert a Change
- Resolving Conflicts
- Merge Tool
- Blame
- History and Log
- Merge Commits
- Branches and Tags
- Branches Popup
- Remotes
- Stashes
- Shelf
- Git Menu
- Git Dialogs
- Interactive Rebase
- Worktrees
- AI Agents
- AI Tasks
- AI Usage
- Keep Computer Awake
- Submodules
- Git LFS
- GitHub
- Git Console
- Terminal
- Terminal Features
- Scripts
- Navigation
- Menus
- Settings
- Settings Search
- Color Themes
- Settings Terminal and Automation
- Settings Files
- Updates
- Status Bar and Help
- Notifications
- Memory Use
- Clear Cache
- MCP and CLI
- Git Mergetool
- Keyboard Shortcuts
- Keyboard Shortcuts Editor
- Troubleshooting
- Troubleshooting Git
Developers
- Developer Guide
- Architecture
- Project Layout
- Backend
- How Folder Watching Works
- Folder Watching Bugs We Fixed
- How Workspace Files Work
- How the Preview Scheme Works
- Backend Services
- How Terminal Features Work
- Terminal Bugs We Fixed
- Frontend
- How the Rich Markdown Editor Works
- Rich Markdown Bugs We Fixed
- Git Menu Links
- Menu Keys and Routing
- Frontend Modules
- Blame Bugs We Fixed
- Project Color And Title Bar
- One Diff View
- Diff Bugs We Fixed
- Merge Tool Layouts
- Merge Tool Bugs We Fixed
- Color Theme Bugs We Fixed
- How the Connected Diff Works
- Rounded Panels Bugs We Fixed
- Update Bugs We Fixed
- Status Bar Bugs We Fixed
- MCP and CLI Bugs We Fixed
- Repository Actions Bugs We Fixed
- How the Changes Tab Works
- CodeMirror Patterns
- How the Cursor Works
- How Editor Features Work
- How the Path Bar Works
- Commands and Events
- Settings Reference
- Commands Workspace and Changes
- Commands Branches and Remotes
- Commands History and Extras
- Commands App and Tools
- Testing
- Test Suites
- Debugging
- Debugging with MCP
- Measuring Setting Memory
- How Terminal Memory Is Measured
- How Markdown Diagrams Work
- Releases and CI
- Publishing the Wiki
- Versioning and Changelog
- Browser Version Packages
- Browser Release Checks
- Docker Image
- Platforms and Signing
- Windows Support
- Windows Bugs We Fixed
- Windows MCP and CLI
- Docs and Screenshots
- UI Library
- UI Library MCP
- UI Library Bugs
- UI Library Migration
- Contributing
How features work
- Welcome screen
- Workspaces and folders
- Files panel
- File operations
- File icons
- Editor and tabs
- Pin, reorder and wrap tabs
- Single tab title
- Split editor
- New File and unsaved changes
- Unload hidden tabs
- Editing code
- Code appearance
- Markdown editor
- Image and PDF preview
- Search Everywhere
- Recent Files
- Navigation Bar
- Find and replace
- Changes and commits
- Sign-in prompts
- Commit box layout
- Repository actions
- Commit options
- Ignoring files
- Diffs
- Inline diffs
- Staging view
- Revert a change
- Resolving conflicts
- Merge tool
- Blame
- History and log
- Merge commits
- Commit tabs
- Branches and tags
- Branches popup
- Remotes
- Stashes
- Shelf
- Git menu
- Git dialogs
- Interactive rebase
- Worktrees
- AI agents
- AI usage
- Keep computer awake
- AI tasks
- Submodules
- Git LFS
- GitHub account
- Git Console
- Back and Forward
- Integrated terminal
- Scripts tool window
- Menu bar
- Settings
- Search in Settings
- Color themes
- Rounded panels
- Updates and release channels
- Status bar and help links
- Notifications
- Memory readout and memory log
- Clear Cache
- MCP server and command line tool
- git mergetool mode