git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: .gitignore don't ignore a file

From
Gustaf Hendeby <hendeby@isy.liu.se>
Date
Sep 10, 2011, 11:01 UTC
Message-ID
<4E6B4380.4050009@isy.liu.se>
In-Reply-To
<4E6B3C19.4040908@gmail.com>
Hi!
On 09/10/2011 12:29 PM, Bastien Sevajol wrote:
Show 21 quoted lines
> 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
Previous: Bastien Sevajol
Message 2 of 2 in “.gitignore don't ignore a file”
  1. Bastien SevajolSep 10, 2011
  2. Gustaf HendebySep 10, 2011

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.