5 Dec 2008, 1:44pm
/dev/random
by

3 comments

Handy Git Command: Stash

I don’t remember where I found this nugget of joy but if you’ve started making changes to files and found yourself in a deep morass from which extrication is all but impossible and you want to revert back, this seems to work quite nicely:

git stash save --keep-index

After that, you can drop that stash with a git stash drop command if you like.