git/list[1] front-page[2] threads[3] people[4] search[5] about
 

git status to show only ignored files

From
GBGiampaolo 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
Message 1 of 1 in “git status to show only ignored files”
  1. Giampaolo BelliniJan 7, 2025

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.