Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • Nifty... however the reason I asked the original question was so that I could make sure that vendor files (*.dll) that were supposed to be there were... so deleting them would not be the desired result. HOWEVER: this is good to know as I have changed my strategy from ignoreing *.dll to ignoring my build output folder (but not my vendor folders). This would be a good alternative to make clean and very helpful on a build server. Commented Feb 26, 2010 at 16:56
  • 2
    I'm using git version 1.7.0.4, and the two commands ('git ls-files -o -i --exclude-standard', 'git clean -dXn') are not equivalent. The first show me 4 files, and the second only two. (.gitignore~, index.php~, sql/create_users.sql~, www/index.php~) (Would remove .gitignore~, Would remove index.php~). Am I missins something here? Commented Jun 15, 2011 at 21:00
  • @VonC, sweet! Thanks! @Cesar, I'm not sure. I'm not so familiar with git ls-files -o -i --exclude-standard. git clean -dXn has always been what I wanted but doesn't show ignored files that have already been removed. git ls-files -o -i --exclude-standard might do that. So, that might be what's causing the difference. Commented Jun 16, 2011 at 1:09