List all tracked and untracked files considering the standard Git exclusion

Viewed 59

Is there a way to list all tracked and untracked files considering the standard Git exclusion like (.git/info/exclude, .gitignore)?

1 Answers

We can use bash grouping commands with git ls-files

{ git ls-files  --exclude-standard --other;  git ls-files }
Related