开发者

Prevent Git Stash from Resetting Staged Files

开发者 https://www.devze.com 2023-02-09 00:27 出处:网络
Assume the following scenario: file a and b are both modified, and a is staged in the index. If you run git stash and then git stash pop, file a开发者_JAVA百科 is no longer staged.

Assume the following scenario:

file a and b are both modified, and a is staged in the index. If you run git stash and then git stash pop, file a开发者_JAVA百科 is no longer staged.

How you make git stash return the index to the previous state?


If I understand correctly, I think you just need:

git stash pop --index
0

精彩评论

暂无评论...
验证码 换一张
取 消