Git Stash Prevention from Reset Phased Files

Assume the following scenario:

file a and b both changed, and a is placed in the index. If you run git stash and then git stash pop , file a will no longer be installed.

How do you do git stash to return an index to a previous state?

+4
source share
1 answer

If I understand correctly, I think you just need to:

 git stash pop --index 
+6
source

Source: https://habr.com/ru/post/1338334/


All Articles