git stash Hold on to changes without committing them

This lesson is available for PRO members or as a single course purchase. Sign-in and choose a plan below.
Get Unlimited PRO Access


*Enrollment provides full access to this course (and updates) for life.

Basic way to create and apply a stash

command line
git stash
git stash pop

Manage your stashes more easily by giving them a name:

command line
git stash save coolstuff

List out all stashes:

command line
git stash list

Apply a stash based on its index:

command line
git stash apply 1


Ask questions via GitHub below OR chat on Slack #questions