I just had a senior moment and couldn't remember how to use git stash
. Like... not at all. Completely blanked. The little icon in the VCS indicator (in iTerm2) was driving me crazy with it's little smug 1
.
Just so I don't forget again, here's the basic usage:
git stash list
git stash list
to see what you've got stashed awaygit stash drop [email protected]{2}
- with the @{2}
being the index of the stash you want to get rid ofgit stash clear