From: Jeff King Date: Thu, 05 Mar 2009 09:09:54 GMT Subject: Re: ignored files stilll listed in git ls-files Message-ID: <20090305090953.GB30445@coredump.intra.peff.net> In-Reply-To: <53e35fd50903041731v1a3c10c9sbb9295f322a819ce@mail.gmail.com> On Thu, Mar 05, 2009 at 09:31:55AM +0800, David Shen wrote: > I add all the files to git before I learned the .gitignore file. Then > I remove those unwanted files from the index. But those files still > appear in git ls-files. This is really annoying. Is there any want to > prevent those ignored files from git ls-files? If they are appearing in "git ls-files", then you didn't actually remove them from the index. Can you show us exactly which commands you ran, what output they produced, and how it differs from what you expected? -Peff