Answer the question
In order to leave comments, you need to log in
Git: how to remove certain files from 'untracked'?
Suppose at the moment the command git status
produces the result:
On branch master
Changes not stages for commit:
....
modified: file1.php
Untracked files:
...
file2.php
file3.php
....
git clean -f
Answer the question
In order to leave comments, you need to log in
$ git clean -i
Would remove the following items:
file2.php file3.php
*** Commands ***
1: clean 2: filter by pattern 3: select by numbers
4: ask each 5: quit 6: help
What now> a
remove file2.php? y
remove file3.php? n
Removing file2.php
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question