From: David Shen <davidshen84@googlemail.com>
To: Jeff King <peff@peff.net>
Cc: git@vger.kernel.org
Subject: Re: ignored files stilll listed in git ls-files
Date: Fri, 6 Mar 2009 22:02:03 +0800 [thread overview]
Message-ID: <53e35fd50903060602n2573217evcd48fdf822adf972@mail.gmail.com> (raw)
In-Reply-To: <20090305090953.GB30445@coredump.intra.peff.net>
Thanks for replying.
My command was not correct. And I solved my problem with the help from
someone else.
But my problem is only solved on Linux. On my winodws machine, I have
added a lot of unwanted file to my git repo, before creating
.gitignore file. I ran 'git rm --cached myfile' to remove it from the
index. But they still exist in 'git ls-files', because they exist in
the history. On Linux, I can use 'git filter-branch' to remove them
from history. But, on windows,
On Thu, Mar 5, 2009 at 5:09 PM, Jeff King <peff@peff.net> wrote:
> 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
>
--
Best Regards,
David Shen
next prev parent reply other threads:[~2009-03-06 14:03 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-05 1:31 ignored files stilll listed in git ls-files David Shen
2009-03-05 1:41 ` Boyd Stephen Smith Jr.
2009-03-05 9:09 ` Jeff King
2009-03-06 14:02 ` David Shen [this message]
2009-03-06 14:31 ` Jeff King
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=53e35fd50903060602n2573217evcd48fdf822adf972@mail.gmail.com \
--to=davidshen84@googlemail.com \
--cc=git@vger.kernel.org \
--cc=peff@peff.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).