You added `dist/` to .gitignore but `git status` keeps showing dist files as modified. The folder was already tracked.
.gitignore only ignores UNtracked files. Already-tracked files need `git rm --cached`.
Easy · 3 steps · +350 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 rm -r --cached distgit commit -m "chore: stop tracking dist"git statusUntrack with `rm --cached` to make .gitignore work for already-added files.