Re: ignored files stilll listed in git ls-files

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxx> 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
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux