‹ BackHN Continuity

Thread

Two Git ignore files nobody told me about

95 points · 66 comments · faithraven

  1. psygn89 · · focus · HN ↗
    This is great... one thing I wish is to be able to exclude are lines, for instance some lines in my config that only benefits the work I do. Some configs don't allow extending and that's where this would come in handy. Anyone have any tricks for that?
    1. faithraven · · focus · HN ↗
      You might be surprised, it&#x27;s sort of possible. Ask your favourite AI agent about git clean filters, and .git&#x2F;info&#x2F;attributes, the per-clone sibling of .git&#x2F;info&#x2F;exclude. The docs are here: <a href="https:&#x2F;&#x2F;git-scm.com&#x2F;docs&#x2F;gitattributes#_filter" rel="nofollow">https:&#x2F;&#x2F;git-scm.com&#x2F;docs&#x2F;gitattributes#_filter
Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.