git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: ignored files stilll listed in git ls-files

From
Jeff King <peff@peff.net>
Date
Mar 6, 2009, 14:31 UTC
Message-ID
<20090306143146.GA4001@coredump.intra.peff.net>
In-Reply-To
<53e35fd50903060602n2573217evcd48fdf822adf972@mail.gmail.com>
On Fri, Mar 06, 2009 at 10:02:03PM +0800, David Shen wrote:
Show 6 quoted lines
> 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,

I think filter-branch runs under cygwin (I think it might even run on msysgit, but just hasn't been included in a shipped version yet). You can also filter-branch on Linux and then fetch or clone the result to Windows.

-Peff
Previous: David Shen
Message 5 of 5 in “ignored files stilll listed in git ls-files”
  1. David ShenMar 5, 2009
  2. Boyd Stephen Smith Jr.Mar 5, 2009
  3. Jeff KingMar 5, 2009
  4. David ShenMar 6, 2009
  5. Jeff KingMar 6, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.