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

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

1
2
3
4
5
6
7
8
9
10
11
12
13
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