Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I see list of ignored files in git?

Tags:

git

I have been using git from past few months and I like git. I was wondering if there is a command which can show list of ignored files in a project.

I tried this git status --ignored from root directory of the project but it doesn't seem to be sufficient.

like image 842
Sangam Gupta Avatar asked Dec 17 '13 17:12

Sangam Gupta


1 Answers

You can use the clean command with the option:

-n, --dry-run - Don't actually remove anything, just show what would be done

git clean -ndX 

In this way git will list all the files that would be cleaned without doing anything, and you get a list of ignored files.

like image 65
Atropo Avatar answered Sep 20 '22 01:09

Atropo