# .gitignore don't ignore a file

2 messages from 2011-09-10 to 2011-09-10. Participants: Bastien Sevajol, Gustaf Hendeby.
Thread: https://gitlist.dev/t/28351

## Bastien Sevajol, 2011-09-10 10:29

Subject: .gitignore don't ignore a file
Message-ID: <4E6B3C19.4040908@gmail.com>
URL: https://gitlist.dev/e/4E6B3C19.4040908%40gmail.com

```
Hello !
I don't understand why my gitingnore don't want to ignore a file.
I have this in my gitignore:

> app/cache/
> app/logs/
> app/logs/dev.log
> app/logs/prog.log
> app/logs/test.log
> *.log
> *.*~
> nbproject

i've try with app/logs/.gitignore with this:

> dev.log

But, git don't ignore app/logs/dev.log :/

Do you now why ?
thank's =)

bux.

```

## Gustaf Hendeby, 2011-09-10 11:01

Subject: Re: .gitignore don't ignore a file
Message-ID: <4E6B4380.4050009@isy.liu.se>
URL: https://gitlist.dev/e/4E6B4380.4050009%40isy.liu.se
In-Reply-To: <4E6B3C19.4040908@gmail.com>

```
Hi!

On 09/10/2011 12:29 PM, Bastien Sevajol wrote:
> Hello !
> I don't understand why my gitingnore don't want to ignore a file.
> I have this in my gitignore:
> 
>> app/cache/
>> app/logs/
>> app/logs/dev.log
>> app/logs/prog.log
>> app/logs/test.log
>> *.log
>> *.*~
>> nbproject
> 
> i've try with app/logs/.gitignore with this:
> 
>> dev.log
> 
> But, git don't ignore app/logs/dev.log :/
> 
> Do you now why ?
> thank's =)

Is the file currently committed (or staged) to your repository?  In that
case; Git never ignore files that are put under version control.  If
not, could you please elaborate a bit more on in what way the file is
not ignored.  It is not completely clear to me what you expect, and what
in fact happens.

/Gustaf

```
