# Removing from index

4 messages from 2008-05-07 to 2008-05-07. Participants: Ryan Taylor, Matthieu Moy, Jakub Narebski.
Thread: https://gitlist.dev/t/13410

## Ryan Taylor, 2008-05-07 08:06

Subject: Removing from index
Message-ID: <4B58A837F454E14AA0453EDBADE96A62B5F3C9@mildred.leeds-art.ac.uk>
URL: https://gitlist.dev/e/4B58A837F454E14AA0453EDBADE96A62B5F3C9%40mildred.leeds-art.ac.uk

```
Hi,

I've been a bit daft and told git to track a logs folder on my live box.
So now I'm pushing and pulling log file between my live box and my dev
box.

I've tried adding logs into my exclude file and also running the git rm
command on *.log to remove them from the index but they're still being
tracked?

I'm new to git. Can anyone shed any light?

Cheers

Ryan

```

## Matthieu Moy, 2008-05-07 08:17

Subject: Re: Removing from index
Message-ID: <vpq4p9a8r57.fsf@bauges.imag.fr>
URL: https://gitlist.dev/e/vpq4p9a8r57.fsf%40bauges.imag.fr
In-Reply-To: <4B58A837F454E14AA0453EDBADE96A62B5F3C9@mildred.leeds-art.ac.uk>

```
"Ryan Taylor" <ryan.taylor@leeds-art.ac.uk> writes:

> I've tried adding logs into my exclude file and also running the git rm
> command on *.log to remove them from the index but they're still being
> tracked?

What does "git status" say after "git rm *.log"?

Are you sure you didn't forget to commit after that?

-- 
Matthieu

```

## Ryan Taylor, 2008-05-07 08:41

Subject: RE: Removing from index
Message-ID: <4B58A837F454E14AA0453EDBADE96A62B5F405@mildred.leeds-art.ac.uk>
URL: https://gitlist.dev/e/4B58A837F454E14AA0453EDBADE96A62B5F405%40mildred.leeds-art.ac.uk
In-Reply-To: <vpq4p9a8r57.fsf@bauges.imag.fr>

```
I do a rm then a commit. But then I keep getting modified logs in my git
status?

-----Original Message-----
From: git-owner@vger.kernel.org [mailto:git-owner@vger.kernel.org] On
Behalf Of Matthieu Moy
Sent: 07 May 2008 09:17
To: Ryan Taylor
Cc: git@vger.kernel.org
Subject: Re: Removing from index

"Ryan Taylor" <ryan.taylor@leeds-art.ac.uk> writes:

> I've tried adding logs into my exclude file and also running the git
rm
> command on *.log to remove them from the index but they're still being
> tracked?

What does "git status" say after "git rm *.log"?

Are you sure you didn't forget to commit after that?

-- 
Matthieu

```

## Jakub Narebski, 2008-05-07 09:39

Subject: Re: Removing from index
Message-ID: <m3abj25u7e.fsf@localhost.localdomain>
URL: https://gitlist.dev/e/m3abj25u7e.fsf%40localhost.localdomain
In-Reply-To: <4B58A837F454E14AA0453EDBADE96A62B5F405@mildred.leeds-art.ac.uk>

```
Please do not toppost.

"Ryan Taylor" <ryan.taylor@leeds-art.ac.uk> writes:
> Matthieu Moy wrote
>> "Ryan Taylor" <ryan.taylor@leeds-art.ac.uk> writes:
>>> 
>>> I've tried adding logs into my exclude file and also running the
>>> git rm command on *.log to remove them from the index but they're
>>> still being tracked?
>> 
>> What does "git status" say after "git rm *.log"?
>> 
>> Are you sure you didn't forget to commit after that?
>
> I do a rm then a commit. But then I keep getting modified logs in my git
> status?

What are the names of the files you want to stop tracking?  What is
the entry in .gitignore or info/excludes file?  What was the sequence
of commands to remove them?  What command did you try/use that
returned unexpected output?  What was that output, and what did you
expect?

-- 
Jakub Narebski
Poland
ShadeHawk on #git

```
