‹ BackHN Continuity

Thread

Two Git ignore files nobody told me about

95 points · 66 comments · faithraven

  1. markbnj · · focus · HN ↗
    Very useful. Minor typo in the post if you're adding the claude code flag: it's "respectGitIgnore" not "respectGitignore". [probably not true, see below]
    1. faithraven · · focus · HN ↗
      Thanks, but I think it&#x27;s the other way round. The docs, the published JSON schema and the binary itself all spell it respectGitignore, lowercase i, named after the .gitignore file. <a href="https:&#x2F;&#x2F;code.claude.com&#x2F;docs&#x2F;en&#x2F;settings-reference#respectgitignore" rel="nofollow">https:&#x2F;&#x2F;code.claude.com&#x2F;docs&#x2F;en&#x2F;settings-reference#respectgi...
      1. gritzko · · focus · HN ↗
        The git-ness of this argument exceeds 100%.
      2. markbnj · · focus · HN ↗
        When I first added it as &quot;respectGitignore&quot; it had no effect and my ignored folder did not show in the @ list. I changed it to &quot;respectGitIgnore&quot; and saved settings.json and the folder did show in the @ list. Then, after a claude restart, the folder stopped showing up. I edited and saved settings.json (but maintained the spelling &quot;respectGitIgnore&quot; and the folder started showing up again. Then after a coding session it stopped showing up, and changing the case of the &#x27;i&#x27; and saving hasn&#x27;t restored the behavior I want... so it just seems flaky at this point.
Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.