+ 1
Which git reset shoul I use?
There are three modes in git reset. 1. Soft reset 2. Mixed reset 3. Hard reset I want to know in which cases I should use one of these. Please help.
1 Odpowiedź
+ 1
1. --soft: uncommit changes, changes are left staged (index).
2. --mixed (default): uncommit + unstage changes, changes are left in working tree.
3. --hard: uncommit + unstage + delete changes, nothing left