开发者

Prevent Git Stash from Resetting Staged Files

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜