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

Re: list all the untrack files in a git respo

From
Jakub Narebski <jnareb@gmail.com>
Date
Jun 4, 2008, 14:19 UTC
Message-ID
<m3abi1z3if.fsf@localhost.localdomain>
In-Reply-To
<75b57c110806040705mc324d9dx9ce099593ce967dd@mail.gmail.com>
"Gerb Stralko" <gerb.stralko@gmail.com> writes:
> Is there a way to list only the untracked files in git? git status
> works, but i need to do some parsing in order to get a list of
> untracked files.  Something like git status --show-only-untracked?

git-status is porcelain, meant for human consumption. For list of untracked files use

  $ git ls-files --other --exclude-standard
-- 
Jakub Narebski
Poland
ShadeHawk on #git
Previous: Gerb StralkoNext: Johan Herland
Message 2 of 5 in “list all the untrack files in a git respo”
  1. Gerb StralkoJun 4, 2008
  2. Jakub NarebskiJun 4, 2008
  3. Johan HerlandJun 4, 2008
  4. Gerb StralkoJun 4, 2008
  5. Michael J GruberJun 4, 2008

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.