KITFORMA · EDITORIAL ANSWER
Does git stash include untracked and ignored files by default?
KitForma editorial guide. A normal stash does not include every file in the directory. Untracked and ignored files require deliberate options and can include valuable local data.
Step-by-step answer
git status and the stash command’s documented flags before saving work. Use include-untracked only when those files belong in the temporary snapshot, and be especially cautious with ignored build data or secrets. Inspect the resulting stash before relying on it. Applying can conflict, and pop may remove the stash after success; apply first when you want to verify before dropping. A stash remains local repository state, not an off-device backup.Sources and verification
Sources checked:
Scope: This editorial guide is based on the cited sources and tool behavior. A forum question or a query observed for our site does not establish market search volume, low competition, guaranteed rankings or inadequate answers elsewhere.
This editorial answer was prepared by KitForma with AI assistance. It is not presented as a real member question or an independent user review. Check the sources and the result with your own file; report corrections in the discussion.