threads / discuss / 62757

git status to show only ignored files

Subject: git status to show only ignored files

## tl;dr

One message between Jan 7, 2025 and Jan 7, 2025.

replies: 0people: 1as markdown or json

Giampaolo Bellini· Jan 7, 2025, 12:54 UTC · lore
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

← back to recent threads