Skip to contentSkip to conversation

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

DISCUSSION Chris Friesen 2 participants 2 messages Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
Quoted 4 lines · Chris Friesen

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