Skip to contentSkip to conversation

.gitignore don't ignore a file

DISCUSSION Bastien Sevajol 2 participants 2 messages Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

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

Quoted 8 lines

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:

Quoted 1 line

dev.log

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

Do you now why ?
thank's =)

bux.

#1 lore raw

Hi!

Quoted 13 lines · Bastien Sevajol

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

Quoted 8 lines

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

Quoted 8 lines

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

Quoted 1 line

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