Git stash recipes

Git’s stash command is one of the most used features in my toolbox. Here are a few of my favourites.

Undo everything since the last commit

git stash

Get back what you just undid

git stash apply

Get back what you just did and remove the stash

git stash pop

Remove a stash without applying it

git stash drop

View the last thing you stashed

git stash show -p stash@{0}
This entry was posted in Uncategorized. Bookmark the permalink.

Leave a comment