threads / discuss / 19858

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

Subject: help, bunch of extra files in "git status" output

## tl;dr

2 messages between Jun 19, 2009 and Jun 19, 2009.

replies: 1people: 2as markdown or json

Chris Friesen· Jun 19, 2009, 01:12 UTC · lore
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· Jun 19, 2009, 01:18 UTC · re: Chris Friesen · lore

Re: help, bunch of extra files in "git status" output

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

← back to recent threads