Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

List all tracked and untracked files considering the standard Git exclusion

Tags:

git

bash

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

like image 694
krema Avatar asked Oct 26 '25 10:10

krema


1 Answers

We can use bash grouping commands with git ls-files

{ git ls-files --exclude-standard --other; git ls-files; }
like image 111
krema Avatar answered Oct 29 '25 01:10

krema



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!