Log inGet started
World

Builtin Library

Branchmain
Branchesmainpublish
Commit3bb1da2647

README.md

zm.stash

git stash: set your uncommitted changes aside and bring them back.

  • zm.stash() (or zm.stash("push", { message = "..." })) saves your changed and staged paths into a stash and takes them back to their committed version; binary and large content is saved by its stored blob and comes back byte-identical. Files no commit holds stay in the working tree, as git leaves an untracked file, and are listed under kept, with their reason in reasons.
  • zm.stash("list") lists your stashes, newest first; stash@{0} is the newest.
  • zm.stash("pop") applies the newest stash and drops it; zm.stash("apply") applies it and keeps it; zm.stash("drop") drops it (to trash). Each takes a stash as stash@{n} or a row id: zm.stash("pop", "stash@{1}"). Applying refuses, writing nothing, when a path the stash restores holds a different local change.