git stash 使用 index 恢复暂存区

在git stash 中使用–index 恢复暂存区

git stash pop --index

Your branch is up-to-date with 'origin/develop'.
Changes to be committed: (use "git reset HEAD <file>..." to unstage)

modified:   metaprogramming/blocks/block_args.rb

Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)

modified:   metaprogramming/blocks/block_args.rb
modified:   metaprogramming/blocks/block_binding.rb