til/git/removing-untracked-files.md

13 lines
182 B
Markdown

You can remove untracked files with `git-clean`.
```bash
# Show which files will be removed
git clean -nd
# remove the files
git clean -f
# remove interactively
git clean -i
```