Git Stash!

Last modified: 
Tuesday, May 5th, 2015
Topics: 
Git

Stash some files

git stash

List all your stashes

 git stash list
stash@{0}: WIP on feature/responsive-layout: 943419c Adds Bartik responsive them

Apply (or bring back) your most recently stashed files

git stash apply

Apply an older stash

git stash apply stash@{2}

Unapply a stash

Say you've applied the wrong stash by mistake, you can revert that like so...

git stash show -p stash@{0} | git apply -R

Delete a stash

After you apply a stash, it will still be in your stash stack until you drop it.

git stash drop stash@{0}


The operator of this site makes no claims, promises, or guarantees of the accuracy, completeness, originality, uniqueness, or even general adequacy of the contents herein and expressly disclaims liability for errors and omissions in the contents of this website.