‹ 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. jo-m · · focus · HN ↗
      You can from the checked in config file include a local file which is not checked in (only if it exists).

      For example, with direnv, the `.envrc` in my projects usually has

          source_env_if_exists .envrc.local
      
      And the repo also ships with a `.envrc.local.example` file.
      1. BeetleB · · focus · HN ↗
        You missed this:

        > Some configs don't allow extending

Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.