git status to show only ignored files
- From
- Giampaolo Bellini <iw2lsi@gmail.com>
- Date
- Jan 7, 2025, 12:54 UTC
- Message-ID
- <CAHzTO8mwYp0nyhhNJUOLdarHAAjVCmuPgEfoQmRtL0-Uu1M8cg@mail.gmail.com>
Hi all,
is there a way to set git-status to list only explicitally-ignored files ?
So far I'm using:
git status --porcelain=v2 --branch --show-stash --ignored=matching --untracked-files=normal
but I'm getting also a list of untracked files and dirs (prefixed with the question mark sign)
# branch.oid 7afefc0fc6542ea00e478eb61811d0830abb4134 # branch.head TEST # branch.upstream origin/TEST # branch.ab +0 -0 ? .gitignore ? Configs/ ? Logs/ ! Configs/non-tracciarmi.txt
Note that:
git status --porcelain=v2 --branch --show-stash --ignored=matching --untracked-files=no
is not working and reporting "fatal: Unsupported combination of ignored and untracked-files arguments"
thanks a lot
Giampaolo