# list all the untrack files in a git respo

5 messages from 2008-06-04 to 2008-06-04. Participants: Gerb Stralko, Jakub Narebski, Johan Herland, Michael J Gruber.
Thread: https://gitlist.dev/t/13791

## Gerb Stralko, 2008-06-04 14:05

Subject: list all the untrack files in a git respo
Message-ID: <75b57c110806040705mc324d9dx9ce099593ce967dd@mail.gmail.com>
URL: https://gitlist.dev/e/75b57c110806040705mc324d9dx9ce099593ce967dd%40mail.gmail.com

```
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?

thanks

Jerry

```

## Jakub Narebski, 2008-06-04 14:19

Subject: Re: list all the untrack files in a git respo
Message-ID: <m3abi1z3if.fsf@localhost.localdomain>
URL: https://gitlist.dev/e/m3abi1z3if.fsf%40localhost.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

```

## Johan Herland, 2008-06-04 14:20

Subject: Re: list all the untrack files in a git respo
Message-ID: <200806041620.54890.johan@herland.net>
URL: https://gitlist.dev/e/200806041620.54890.johan%40herland.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

```

## Gerb Stralko, 2008-06-04 14:41

Subject: Re: list all the untrack files in a git respo
Message-ID: <75b57c110806040741x17cabe91j9863a471ef1670c@mail.gmail.com>
URL: https://gitlist.dev/e/75b57c110806040741x17cabe91j9863a471ef1670c%40mail.gmail.com
In-Reply-To: <200806041620.54890.johan@herland.net>

```
>        git ls-files -o
>
> ...Johan

This is exactly what i want.  Thanks Johan.

Jerry

```

## Michael J Gruber, 2008-06-04 15:55

Subject: Re: list all the untrack files in a git respo
Message-ID: <g26dsq$dqr$1@ger.gmane.org>
URL: https://gitlist.dev/e/g26dsq%24dqr%241%40ger.gmane.org
In-Reply-To: <75b57c110806040705mc324d9dx9ce099593ce967dd@mail.gmail.com>

```
Gerb Stralko venit, vidit, dixit 04.06.2008 16:05:
> 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?
> 
> thanks
> 
> Jerry

git-ls-files --others --exclude-standard

may be what you are looking for.

Michael

```
