Stash temporarily saves uncommitted changes to a stack so you can switch context; pop restores them, apply restores them without deleting.
git stash takes all modified tracked files and staged changes, saves them as a commit on a hidden stack (refs/stash), and resets the working tree to match HEAD. git stash pop applies the top stash and deletes it from the stack. git stash apply applies without deleting. git stash list shows the stack, each entry with a message (WIP on main: <hash> <subject>).
By default, stash ignores untracked files. git stash -u includes them; git stash -a also includes ignored files. Neither is the default because losing untracked work by accident is a common (and painful) mistake.