Stashes
A stash puts changes aside without committing them, so you can switch to something else and bring them back later.
Stash changes
- Stash Changes… (
⌥⌘S) puts your changes aside with a name. - To stash only some files, select them in Changes and choose Stash from the right-click menu.
Right after, a message offers Undo if you change your mind.
Bring them back
The Stashes screen (⌘4) lists your stashes with their changes. Apply brings a stash back and keeps it; Pop brings it back and removes it; Drop removes it. You can also start a new branch from a stash.
After Drop, a banner offers Undo for a moment.