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

Re: Some files not ignored as they should be

From
Jeff King <peff@peff.net>
Date
Apr 18, 2019, 19:07 UTC
Message-ID
<20190418190751.GB12260@sigill.intra.peff.net>
In-Reply-To
<4343deda23de48c981c91c4e9c8b0c88@SRV-ERC-MAIL01.XCMG-ERC.LOCAL>
On Wed, Apr 17, 2019 at 09:18:23AM +0000, Celestino, Federico wrote:
Show 5 quoted lines
> I am facing another issue with Git.
> Please find attached the .gitignore file that I am currently using.
> My intention is to ignore all the files inside any Debug folder,
> except for .map, .hex and .bin files.
> Yet, a .out file is not ignored, as shown in the second attachment.

I don't see anything obviously wrong in your .gitignore, and I couldn't reproduce your problem with a simple attempt[1]. However, note that files which are already tracked in the repository will not be ignored (nor will they be listed by check-ignore). Is it possible that the file in question is already in the index (try grepping the output of "git ls-files")?

-Peff
[1] Please consider cutting-and-pasting from the terminal instead of
    attaching a screenshot. It's much easier to read, and allows people
    to try to reproduce the issue without re-typing that horrifically
    long filename.
Previous: Celestino, Federico
Message 2 of 2 in “Some files not ignored as they should be”
  1. Celestino, FedericoApr 17, 2019
  2. Jeff KingApr 18, 2019

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.