Stash

Sometimes you are mid-change and need a clean tree right now — to switch branches, or check something on main.

Stash lifts your uncommitted work onto a separate stack and leaves your tree clean. Nothing is committed and nothing is lost; it is set aside.

Exercises

  1. Exercise 1. You have an uncommitted change but need a clean tree. Stash it.
  2. Exercise 2. This time some work is staged and some is not. Stash takes both — one entry, everything in it.