‹ BackHN Continuity

Thread

Two Git ignore files nobody told me about

95 points · 66 comments · faithraven

  1. tonymet · · focus · HN ↗
    Does anyone have a trick to blacklist files by type e.g. object / binary code, gz files. Often objects & commands lack extensions so going by extension doesn’t work. Git seems to guess binary pretty well upon diff, how to tap into that.

    I’ve used pre-commit hooks for this but I’d rather a simple config flag, it seems trivial.

Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.