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

Clean up stale .gitignore and .gitattribute patterns

From
Sebastian Schuberth <sschuberth@gmail.com>
Date
Jun 23, 2023, 15:29 UTC
Message-ID
<CAHGBnuOR+MU50jhNBHw8buWS_Yr9D92mErvgoi=cK16a=4_YUA@mail.gmail.com>
Hi,

is there a command to easily check patterns in .gitignore and .gitattributes to still match something? I'd like to remove / correct patterns that don't match anything anymore due to (re)moved files.

-- 
Sebastian Schuberth
Next: Junio C Hamano
Message 1 of 9 in “Clean up stale .gitignore and .gitattribute patterns”
  1. Sebastian SchuberthJun 23, 2023
  2. Junio C HamanoJun 23, 2023
  3. Jeff KingJun 24, 2023
  4. Jeff KingJun 24, 2023
  5. Sebastian SchuberthJun 26, 2023
  6. Junio C HamanoJun 26, 2023
  7. Sebastian SchuberthJun 26, 2023
  8. Jeff KingJun 27, 2023
  9. Sebastian SchuberthJun 27, 2023

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.