What is the command for git stash and bringing the staged changes back, stash the changes back?

Use:
git stash push -m "temp"
Then to bring the stashed changes back:
git stash pop
If you specifically want to restore them as staged (index state too), use:
git stash pop --index
Quick full flow:
git stash push -m "wip"
# ...do other work...
git stash pop --index
This is a shared conversation. Sign in to Orris to start your own chat.