threads / discuss / 19808

fuggedabadit

Subject: fuggedabadit

## tl;dr

3 messages between Jun 14, 2009 and Jun 14, 2009.

replies: 2people: 3as markdown or json

Phlip· Jun 14, 2009, 04:51 UTC · lore
Gitsters:

El Goog has the wrong answer for the question "how do I forget about a file?" Someone cheerfully directed me to git rm, as equivalent to svn rm.

I don't need the actual file to go away. (I, uh, mumble, checked in too much when starting out, and now git commit is slooow.)

How do I tell git to forget about a file, but leave on my hard drive?
-- 
   Phlip
   (BTW, the 1980s called - they want their mailing list software back!;)
Santi Béjar· Jun 14, 2009, 07:07 UTC · re: Phlip · lore

Re: fuggedabadit

2009/6/14 Phlip <phlip2005@gmail.com>:
Show 9 quoted lines
> Gitsters:
>
> El Goog has the wrong answer for the question "how do I forget about a
> file?" Someone cheerfully directed me to git rm, as equivalent to svn rm.
>
> I don't need the actual file to go away. (I, uh, mumble, checked in too much
> when starting out, and now git commit is slooow.)
>
> How do I tell git to forget about a file, but leave on my hard drive?
man git-rm or:
http://www.kernel.org/pub/software/scm/git/docs/git-rm.html
have the answer.

HTH, Santi

Sverre Rabbelier· Jun 14, 2009, 08:25 UTC · re: Phlip · lore

Re: fuggedabadit

Heya,
On Sun, Jun 14, 2009 at 06:51, Phlip<phlip2005@gmail.com> wrote:
> How do I tell git to forget about a file, but leave on my hard drive?
Do you want to simply 'git rm --cached && git commit -m "remove file"'
 to create a commit that removes it, or do you want to remove the file
from your repo's history too? If the latter is the case, you should
look into 'git filter-branch'.
-- 
Cheers,

Sverre Rabbelier

← back to recent threads