Say I crete some files for experimenting without committing them. git status
shows:
Untracked files:
(use "git add <file>..." to include in what will be committed)
file a
file b
nothing added to commit but untracked files present (use "git add" to track)
If I run git clean -f
it will remove files a and b, but also other untracked files, such as node_modules
, tmp files etc., which are included under .gitignore
. Is there a git command to remove only the untracked files shown under git status
or must I remove them manually with rm
?