Git — Medium
Key points
- --soft keeps changes in staging and working directory
- --mixed resets staging but preserves working directory
- --hard has the most destructive effect, discarding all changes
- Each option moves the HEAD pointer differently
Ready to go further?
Related questions
