How to ignore .gitignore and list all untracked files?

Member

by jerad , in category: Third Party Scripts , 4 months ago

How to ignore .gitignore and list all untracked files?

Facebook Twitter LinkedIn Telegram Whatsapp

1 answer

by darrion.kuhn , 4 months ago

@jerad 

To list all untracked files in a Git repository, you can use the following command:

1
git ls-files --others --exclude-standard


This command will list all untracked files in the repository, regardless of what is specified in the .gitignore file. It will display a list of all untracked files in the current directory and its subdirectories.