samyishak
3/1/2017 - 9:09 PM

git stash

stash push and pop, show

# push a new stash onto your stack
git stash

# view which stashes are stored
git stash list

# reapply the most recently pushed stash
git stash apply

# reapply a different stash (from the stash list)
git stash apply stash@{2}

# reapply a stash with staged changes
git stash apply --index

# drop stashes from the stash list
git stash drop stash@{0}

# reapply a stash and drop it from the stash list simultaneously
git stash pop

# view files and diffs in a stash
git stash show -p
git stash show -p stash@{1}