Suggest an editImprove this articleRefine the answer for “Which changes go into stash?”. Your changes go to moderation before they’re published.Approval requiredContentWhat you’re changing🇺🇸EN🇺🇦UAPreviewTitle (EN)Short answer (EN)By default, **stash** captures uncommitted changes, but not all types of files. **Key point:** by default `git stash` saves the changes of tracked files from the working directory and staging area, while untracked and ignored files are not included unless the corresponding options are specified explicitly.Shown above the full answer for quick recall.Answer (EN)ImageBy default, **stash** captures **uncommitted changes**, but not all types of files. --- ## What is saved to stash by default When you run: ```bash git stash ``` The stash captures: - changes to **tracked files** in the working directory - changes **in the staging area** --- ## What is NOT captured by stash by default - **untracked files** - files ignored via `.gitignore` --- ## How to add untracked files ```bash git stash -u ``` or ```bash git stash --include-untracked ``` In this case, the stash captures: - tracked files - untracked files --- ## How to add everything, including ignored files ```bash git stash -a ``` or ```bash git stash --all ``` --- ## Summary table | Type of change | By default | `-u` | `-a` | |---|---|---|---| | Tracked files | yes | yes | yes | | Staged changes | yes | yes | yes | | Untracked files | no | yes | yes | | Ignored files | no | no | yes | --- ## Key phrasing for an interview > By default `git stash` saves the changes of tracked files from the working directory and staging area. Untracked and ignored files are not included unless the corresponding options are specified explicitly.For the reviewerNote to the moderator (optional)Visible only to the moderator. Helps review go faster.