git stash --keep-index leaves staged changes in place

·#git·

Handy for testing what you are about to commit:

git stash --keep-index
npm test
git stash pop
Keyboard shortcuts
/Open search / command palette
⌘KToggle command palette
gtGo to TIL stream
gbGo to Articles
ghGo to Home
↑↓Navigate results
↵Select result
escClose palette