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

How do I .gitignore files starting with "#"?

From
Bruce Korb <bruce.korb@gmail.com>
Date
Sep 10, 2010, 16:59 UTC
Message-ID
<AANLkTimaPrDX4rn2xRYyLn-bh2rB-TgKaEtGSQ+JxSnM@mail.gmail.com>
After trying lots of variations, I found it to be:
\#*

Not obvious and not easy to look up. Please add it to your .git/info/exclude sample text. Thanks!

Next: Jakub Narebski
Message 1 of 8 in “How do I .gitignore files starting with "#"?”
  1. Bruce KorbSep 10, 2010
  2. Jakub NarebskiSep 10, 2010
  3. Ævar Arnfjörð BjarmasonSep 10, 2010
  4. Bruce KorbSep 10, 2010
  5. Jakub NarebskiSep 10, 2010
  6. Jakub NarebskiSep 10, 2010
  7. Jakub NarebskiSep 10, 2010
  8. Bruce KorbSep 10, 2010

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.