Park unfinished work, then bring it back carefully.
Stash records working-tree and index changes and returns them toward HEAD. It is local, not a remote backup. Use a message so you can recognize the work later.
git stash push -m "menu work in progress"
git stash listBy default stash does not include untracked files. -u includes them; -a also includes ignored files. Check the files first, especially generated output and sensitive local files.
git status
git stash push -u -m "include new files"Apply restores changes and keeps the stash entry. Pop restores and, on success, removes it. When conflicts prevent a successful pop, Git keeps the entry so you can recover.
git stash apply
# Alternative, not an additional required step:
git stash popStash can conflict when the target files have changed. Inspect list and show, resolve conflicts deliberately, and drop only an entry whose work you no longer need. Do not use clear as a routine habit.
git stash show -pWhich restores work while keeping the entry?
Choose an answer.
Command blocks are syntax examples checked against official documentation, not fabricated terminal output. Replace uppercase placeholders with your actual names and inspect status before commands that change work.