git stash laikinai išsaugo jūsų nepatvirtintus pakeitimus ir grąžina jūsų darbo direktoriją į švarią būseną — todėl galite pakeisti kontekstą (pvz., pataisyti skubų klaidą kitoje šakoje) nepatvirtindami vidurinės darbo, tada vėliau atkurti pakeitimus.
Problema, kurią stash sprendžia
You're mid-work with uncommitted changes, but need to switch context urgently:
→ switch branches? Git may refuse (uncommitted changes would conflict) or carry
them along messily
→ commit half-done work? No — it's not ready (pollutes history)
→ STASH saves your changes aside, giving you a clean working directory to switch.
