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

2 messages, 2 authors, 2016-06-15 · open the first message on its own page

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

From: Chris Friesen <hidden>
Date: 2016-06-15 22:46:58

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

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

From: Linus Torvalds <torvalds@linux-foundation.org>
Date: 2016-06-15 22:46:58


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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help