Git Reset (--soft / --mixed / --hard)

Three places at Mr. Harun’s studio: the album (HEAD), the tray (the index), the desk (the work tree). See how far --soft, --mixed and --hard reach, and call a…

Why it matters

A reset in the wrong mode, --hard above all, is the most common way beginners lose work. Once you see the three places move, you know --soft and --mixed only relocate, only --hard overwrites, and a "lost" photo can still be called back through the reflog.

The key idea

A reset moves the ribbon back, its mode says how far

Common mistakes

Try it in this playground