+ 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.

30th Jun 2020, 6:49 AM
KUMAR SHANU
KUMAR SHANU - avatar
1 Antwort
+ 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
1st Jul 2020, 4:35 PM
Lijo M Loyid
Lijo M Loyid - avatar