# help, bunch of extra files in "git status" output

2 messages from 2009-06-19 to 2009-06-19. Participants: Chris Friesen, Linus Torvalds.
Thread: https://gitlist.dev/t/19858

## Chris Friesen, 2009-06-19 01:12

Subject: help, bunch of extra files in "git status" output
Message-ID: <4A3AE5E6.6010404@nortel.com>
URL: https://gitlist.dev/e/4A3AE5E6.6010404%40nortel.com

```
Hi,

I'm working with a number of git trees.  Recently I was working on a
tree based off 2.6.27, and I went to checkout the mainline branch.  I
changed my mind and hit ctrl-C partway through, then checked out my
original branch.

Now when I do "git status" it shows about 600 filenames in the
"Untracked files" section.  How do I return my tree to a clean state?
Can I just delete all these files?

Chris

```

## Linus Torvalds, 2009-06-19 01:18

Subject: Re: help, bunch of extra files in "git status" output
Message-ID: <alpine.LFD.2.01.0906181817360.16802@localhost.localdomain>
URL: https://gitlist.dev/e/alpine.LFD.2.01.0906181817360.16802%40localhost.localdomain
In-Reply-To: <4A3AE5E6.6010404@nortel.com>

```


On Thu, 18 Jun 2009, Chris Friesen wrote:
> 
> Now when I do "git status" it shows about 600 filenames in the
> "Untracked files" section.  How do I return my tree to a clean state?
> Can I just delete all these files?

Yes. You can do "git clean -dqfx" and it will delete any files that aren't 
listed in the index.

		Linus

```
