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

Re: list all the untrack files in a git respo

From
Johan Herland <johan@herland.net>
Date
Jun 4, 2008, 14:20 UTC
Message-ID
<200806041620.54890.johan@herland.net>
In-Reply-To
<75b57c110806040705mc324d9dx9ce099593ce967dd@mail.gmail.com>
On Wednesday 04 June 2008, Gerb Stralko wrote:
> 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?
Is
	git ls-files -o
what you want?

(Depending on your use case, you might also find the --exclude-standard and --directory options useful as well. See the git-ls-files manual page for details)

...Johan
-- 
Johan Herland, <johan@herland.net>
www.herland.net
Previous: Jakub NarebskiNext: Gerb Stralko
Message 3 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.