You ran `git stash` to switch branches, but your new untracked `migration.sql` was left behind — and you accidentally committed it on the wrong branch.
`git stash` ignores untracked by default. Use -u (or -a for ignored too).
Easy · 3 steps · +300 XP
This scenario walks through 3 steps, in order:
Try the terminal first — you learn more by doing. When you want to check yourself, here is the command for each step.
git stash -ugit statusgit stash pop`git stash -u` includes untracked. `-a` also includes ignored files.