{"thread":{"id":"19858","subject":"help, bunch of extra files in \"git status\" output","startedAt":"2009-06-19T01:12:06Z","lastAt":"2009-06-19T01:18:37Z","messageCount":2,"participants":["Chris Friesen","Linus Torvalds"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"116607","messageId":"4A3AE5E6.6010404@nortel.com","threadId":"19858","inReplyTo":null,"subject":"help, bunch of extra files in \"git status\" output","fromName":"Chris Friesen","fromEmail":"cfriesen@nortel.com","sentAt":"2009-06-19T01:12:06Z","receivedAt":"2009-06-19T01:12:06Z","isPatch":false,"sender":{"key":"cfriesen@nortel.com","avatar":null},"body":"Hi,\n\nI'm working with a number of git trees.  Recently I was working on a\ntree based off 2.6.27, and I went to checkout the mainline branch.  I\nchanged my mind and hit ctrl-C partway through, then checked out my\noriginal branch.\n\nNow when I do \"git status\" it shows about 600 filenames in the\n\"Untracked files\" section.  How do I return my tree to a clean state?\nCan I just delete all these files?\n\nChris\n"},{"id":"116608","messageId":"alpine.LFD.2.01.0906181817360.16802@localhost.localdomain","threadId":"19858","inReplyTo":"4A3AE5E6.6010404@nortel.com","subject":"Re: help, bunch of extra files in \"git status\" output","fromName":"Linus Torvalds","fromEmail":"torvalds@linux-foundation.org","sentAt":"2009-06-19T01:18:37Z","receivedAt":"2009-06-19T01:18:37Z","isPatch":false,"sender":{"key":"torvalds@linux-foundation.org","avatar":"https://avatars.githubusercontent.com/u/1024025?v=4"},"body":"\n\nOn Thu, 18 Jun 2009, Chris Friesen wrote:\n> \n> Now when I do \"git status\" it shows about 600 filenames in the\n> \"Untracked files\" section.  How do I return my tree to a clean state?\n> Can I just delete all these files?\n\nYes. You can do \"git clean -dqfx\" and it will delete any files that aren't \nlisted in the index.\n\n\t\tLinus\n"}]}