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