Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you git show untracked files that do not exist in .gitignore

Tags:

git

People also ask

How do I find untracked files?

Seeing untracked files The possible options are: -no - Show no untracked files. -normal - Shows untracked files and directories. -all - Also shows individual files in untracked directories. Using the --untracked-files=all we see all the files in new directories.


You can explicitly list what is being tracked and untracked as follows to see if Git is seeing and honoring your .gitignore. If you post your .gitignore contents, git status output, and dir or ls we can better assist you.

List ignored files

$ git ls-files . --ignored --exclude-standard --others

List untracked files

$ git ls-files . --exclude-standard --others