# fuggedabadit

3 messages from 2009-06-14 to 2009-06-14. Participants: Phlip, Santi Béjar, Sverre Rabbelier.
Thread: https://gitlist.dev/t/19808

## Phlip, 2009-06-14 04:51

Subject: fuggedabadit
Message-ID: <4A3481CD.7050602@gmail.com>
URL: https://gitlist.dev/e/4A3481CD.7050602%40gmail.com
In-Reply-To: <S1750942AbZFNEso/20090614044844Z+270@vger.kernel.org>

```
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, 2009-06-14 07:07

Subject: Re: fuggedabadit
Message-ID: <adf1fd3d0906140007y6deac748i7f75e65f70e230a3@mail.gmail.com>
URL: https://gitlist.dev/e/adf1fd3d0906140007y6deac748i7f75e65f70e230a3%40mail.gmail.com
In-Reply-To: <4A3481CD.7050602@gmail.com>

```
2009/6/14 Phlip <phlip2005@gmail.com>:
> 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, 2009-06-14 08:25

Subject: Re: fuggedabadit
Message-ID: <fabb9a1e0906140125v17e056c0o4bab3d7e8aead6ab@mail.gmail.com>
URL: https://gitlist.dev/e/fabb9a1e0906140125v17e056c0o4bab3d7e8aead6ab%40mail.gmail.com
In-Reply-To: <4A3481CD.7050602@gmail.com>

```
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

```
