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

Implement feature to link/include other gitignore files in gitignore

From
RJRyan Johnson <rj.amdphreak@gmail.com>
Date
Aug 13, 2025, 21:09 UTC
Message-ID
<LV8P220MB2017EA88974F2311DCFB7665F52AA@LV8P220MB2017.NAMP220.PROD.OUTLOOK.COM>
Feature request:
Let .gitignore file link/include other gitignore files:

``` include .gitignore.python ```

Why would this help? https://github.com/github/gitignore/blob/main/Python.gitignore Look at how long that Python gitignore is. If I am developing a project with multiple languages, imagine how long and how many duplicates will show up when I copy templates from these other languages: https://github.com/github/gitignore . Now imagine a team of people adding new gitignore patterns. They will inevitably add them somewhere I don't want, like in the middle of templates. I don't want people editing the templates, because it's too difficult to see their changes vs the template. I want the templates to be linked so that we can tell people to copy updated gitignore templates, without having to analyze the file for lines that are custom-made.
Respectfully, consider adding this easy effective idea.
Next: brian m. carlson
Message 1 of 2 in “Implement feature to link/include other gitignore files in gitignore”
  1. Ryan JohnsonAug 13, 2025
  2. brian m. carlsonAug 13, 2025

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.