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-indexAfter that, you can drop that stash with a git stash drop command if you like.